LearnPy Hub
← Arena
EasyRating 900

Doubling Money

Money grows by p percent each year (compounded). Print the number of whole years until it at least doubles.

Input

One integer p (1–100).

Output

Years.

Sample 1

Input
10
Output
8

Sample 2

Input
100
Output
1
solution.py
Output appears here
Doubling Money · Python Arena problem · LearnPy Hub