Given an integer , find the smallest integer that satisfies two conditions:
is greater than or equal to ;
There is a pair of non-negative integers such that x = a^3 + a^2 \cdot b + a \cdot b^2 + b^3.
One nonnegative integer n~(n \le 10^{18}).
Print the smallest value of .
Example 1
Example 2