Purchase on credit#394

Purchase on credit

1 second
64 megabytes
Very easy

The bank offers a loan for purchasing a product with the following terms. If you buy a product worth on credit for months, your initial payment will be . This is followed by monthly payments of for the next N - 1 months. At the end of the months, you must pay the accumulated interest for using the credit, which is calculated as follows:

Write a program to calculate the amount of the final payment.

Input

The first line of the input contains three numbers separated by spaces: the purchase price (an integer, 0 < S < 10^9), the number of months (an integer, 0 < N < 100), and the interest rate (a real number, 0 < P \leq 0.01).

Output

Output the amount of the final payment, rounded to a precision of 10^{-2}.

Examples

Example 1

Loading
Loading