2-variable Function
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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 .
Input
One nonnegative integer .
Output
Print the smallest value of .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 730
Acceptance rate 12%