Buns#11379

Buns

1 second
128 megabytes
Very easy (≈850)

Huseyn likes buns very much, which are sold at ADA University in building C. It is known that

Huseyn wants to buy exactly n buns. What is the minimum number of qəpik he should spend?

Input

Three positive integers a, b, and n, each not greater than 10^9.

Output

Print the minimum number of qəpik that Huseyn should spend to buy exactly n buns.

Examples

Example 1

Loading
Loading