~/algor $ cat problems/while-bank-omonati
Bank deposit
Easy
1000 ms
64 MB
28%
The initial deposit is $1000$ soums, and every month the amount grows by $p$ percent:
$$S_{k} = S_{k-1} * \left(1 + \frac{p}{100}\right), \qquad S_{0} = 1000$$
After how many months will the deposit first exceed $1100$ soums ($S_{k} \gt 1100$)? Find the number of months $k$ and $S_{k}$.
Input
One real number $p$ — the monthly percentage.
Output
One line with two numbers separated by a space: the integer $k$ and $S_{k}$ with exactly 2 digits after the decimal point (for example, 2 1144.90).
Note
$0.5 \le p \le 24.5$
Examples
Input #1
7.0
Output #1
2 1144.90
Input #2
5.0
Output #2
2 1102.50