#abc198c. [abc198_c]Compass Walking
[abc198_c]Compass Walking
Problem Statement
Takahashi is standing at the origin of a two-dimensional plane.
By taking one step, he can move to a point whose Euclidian distance from his current position is exactly (the coordinates of the destination of a move do not have to be integers). There is no other way to move.
Find the minimum number of steps Takahashi has to take before reaching .
We remind you that the Euclidian distance between points and is .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the minimum number of steps Takahashi has to take before reaching .
Sample Input 1
5 15 0
Sample Output 1
3
He can reach there in three steps: . This is the minimum number needed: he cannot reach there in two or fewer steps.
Sample Input 2
5 11 0
Sample Output 2
3
One optimal route is .
Sample Input 3
3 4 4
Sample Output 3
2
One optimal route is $(0,0) \\to (2-\\frac{\\sqrt{2}}{2}, 2+\\frac{\\sqrt{2}}{2}) \\to (4,4)$.