#46Medium
Bank deposit
Time: 1 s · Memory: 256 MB
- Loops
Statement
soums were put into a bank. Every month the amount on the account grows by percent (the interest is always charged on the current amount). After how many months does the amount become greater than twice the initial amount? Print the number of months and the amount at that moment.
Input format
A single line with two integers and (, ).
Output format
A single line: the number of months (an integer) and the amount with exactly 2 digits after the decimal point.
Examples
Input
1000 5
Output
15 2078.93
Input
1000 12
Output
7 2210.68
Note
Every month: . The condition is greater than , not equal to it.
In the first example: , while after months it is still — the answer is .
