Module: (Python) Workshop - 1 "Sofia the first". Linear Algorithms


Problem

10 /11


Bank deposit

Theory Click to read/hide

Problem

King wanted to open a bank account, in order to save the children to study at the university. King wants to calculate how much he will receive income in t years, if he deposits into the account of n dollars at an equal rate p%.
Help King, write a program for him that automates the calculation and allows the King to save time on bank trips.
Take into account the effect of capitalization: interest is accrued to the amount initially deposited into the account with the frequency established by the agreement. All banks in the kingdom charge interest annually. With subsequent accruals, interest will be added not only to the deposit amount, but also to previously accrued income.

Input format 
Given three integers separated by space: t (0 < t <= 20), n (0 < n <= 109) and p (0 < p <= 100).

Output format 
Output one number - the income that the King will receive from investing.
 
Example
Input Output
1 5 10000 10 16105.10