Yo-Yo
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Toy yo-yo consists of a coil, which is wound a thread. If, holding the end of the thread to release the spool, it will be rotating, first drop down, and then by inertia to rise. But the height to which the coil will rise, will be times less than the height from which she sank. We assume that the coil is stopped, if the height of another rise is less or equal than .
Write a program that the length of strings and the coefficient counts the number of ascents coil to stop. For example, let and , then the coil will rise to the heights of , and then stops. So we get lifts.
Input
Two integers and .
Output
Print the number of ascents.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 31K
Acceptance rate 32%