You and Me (NAVILLERA)
Time limit1sMemory limit1024 MB
Find the minimum number of moves, each of exact length c in the plane, needed to go from (0,0) to (X,Y).
Problem
Flying like a butterfly, nana na na, I dance along
Wind, wind, blow
Flutter so I can fly over to you
With a pure white heart
I want to fly toward you like a butterfly. I am at the point on the coordinate plane, and you are at .
To fly like a butterfly, I can flap my wings zero or more times.
If I flap once from position , I can move to any that satisfies .
Find the minimum number of flaps needed to reach your position .
Input
The first line contains , , and .
Output
On the first line, print the minimum number of flaps.
Constraints
- All numbers in the input are integers.