#PCBSAU0000020. Lãi kép (Compound Interest)

Lãi kép (Compound Interest)

Compound Interest

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given principal PP, per-period interest rate rr percent, and periods nn, calculate P(1+r/100)nP(1+r/100)^n with two fractional digits. This PHOJ edition uses principals divisible by 100 and one of three fixed interest rates.

Input

One line with integers P,r,nP,r,n.

Output

Print the final balance with exactly two fractional digits.

Subtask

  • Subtask 1 — 100 points: 100≤P≤106100\le P\le10^6, PP divisible by 100100; r∈{0,10,20}r\in\{0,10,20\}; 0≤n≤100\le n\le10.

Example

Input

1000 10 2

Output

1210.00

Explanation

The per-period multiplier is 1.11.1; after two periods the value is 1000×1.12=12101000\times1.1^2=1210, printed as 1210.00.