In the beginning of this year, Wooder creates a bank account which pays 0.6% interest per year, compounded yearly. Then, Wooder may deposit or withdraw some amount of money in the beginning of each of the following years. You are asked to help calculate the amount of money in Wooder’s bank account.
Consider the following example:
The input contains several lines. Each line contains three elements, which are separated by blanks, describing the bank transaction at a specific year:
Note that 0 < year < 100, and 0 <= money <= 1000.
When your program reads in an “accumulate” (A) instruction, it will output the balance of Wooder’s bank account at the beginning of the indicated year. Then your program is terminated
The amount of money in Wooder’s bank account.
The answer should be expressed as a floating point number with precision to the second decimal place. Note that you need to print a ' \n' at the end.