2-variable Function#11295

2-variable Function

1 second
128 megabytes
Medium

Given an integer , find the smallest integer that satisfies two conditions:

Input

One nonnegative integer n~(n \le 10^{18}).

Output

Print the smallest value of .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading