题目描述

(Facebook User Base Growth) There are approximately 2.5 billion people on the Internet as of January 2013. Facebook reached one billion users in October of 2012. In this exercise, you’ll write a program to determine when Facebook will reach 2.5 billion people if it were to grow at fixed monthly percentage rates of 2%, 3%, 4% or 5%.


输入格式

The input consists of n (0<n<100) lines.
Each line consists of the monthly growth percentage (ranges from 1% to 200%).
The last line of input consists of Int(-1).


输出格式

Output the minimum number of months that Facebook will need to reach 2.5 billion people.


样例数据

输入

1%
2%
5%
-1

输出

93
47
19

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解