P1423 {{Xiaoyu Is Swimming}}

Background

{{}}

Description

{{Xiaoyu is happily swimming, but she soon sadly finds that she lacks strength and swimming is tiring. It is known that Xiaoyu can swim $2$ meters in the first step, but as she becomes more and more tired and weaker, each subsequent step can only cover $98\%$ of the distance of the previous step. Now Xiaoyu wants to know, if she wants to swim to a place $s$ meters away, how many steps does she need? Please write a program to solve this problem.}}

Input Format

{{Input a real number $s$ (unit: meters), representing the target distance to swim.}}

Output Format

{{Output an integer, representing the total number of steps Xiaoyu needs.}}

Explanation/Hint

{{It is guaranteed that $0 \leq s < 100$, and $s$ has at most one digit after the decimal point.}} Translated by ChatGPT 5