- Time limit: 1.00 s
- Memory limit: 128 MB
Uolevi proposed the following conjecture:
Every positive integer that can be written as a sum of three distinct positive integers can be written as a sum of three equal positive integers.
To prove Uolevi wrong, Maija asked you to write a program to produce counterexamples for the conjecture.
In particular, given integer , your program has to output the smallest positive integer that is larger than and can be written as a sum of three distinct positive integers but can't be written as a sum of three equal positive integers.
Input
The only input line contains a single integer .
Output
Output the smallest counterexample larger than .
Constraints
Example
Input:
8
Output:
10
Explanation: Number can be written as , but there is no positive integer such that .