#P192. 【例32.1】 学游泳
【例32.1】 学游泳
Description
Xiaoming is happily swimming, but he soon realizes that he doesn't have enough strength, and swimming is quite tiring. In the first unit of time, Xiaoming can swim meters. However, as he gets more tired, his strength decreases, and in each subsequent unit of time, he can only swim of the distance he swam in the previous step. Xiaoming wants to know how many steps he needs to swim to reach a distance of meters. Please write a program to solve this problem.
Input Format
Input a real number (), representing the target distance to swim.
Output Format
Output an integer representing the total number of units of time Xiaoming needs to swim.
Sample
5.894