St Andrews Online Judge

Taxi Fare

By Kay Akashi

Time: 1000 ms
Memory: 256000 kB

Please log in to submit code.

Please log in.

Problem Statement

In Tokyo, initial taxi fare is XX yen. Taxi fare increases by every kilometer by YY yen. One day, Kay has moved ZZ meters by taxi. How much should he pay for the fare?

In the first example, taxi fare starts at 410410 yen. The fare increases by 400400 yen at the point where Kay has moved 10001000m (= 11km). Hence the total fare is 810810 yen.

In the second example, taxi fare starts at 00 yen. Because Kay travelled by less than a kilometer, the fare never increases. Hence the total fare is 00 yen.

Constraints

0X10000 \leq X \leq 1000, 0Y5000 \leq Y \leq 500, 0Z100000 \leq Z \leq 10000.

Input

The input contains three integers in a single line: XX, YY, and ZZ.

Output

Output the taxi fare in yen.

Examples

Input

410 400 1900

Output

810

Input

0 100 944

Output

0