HZNUOJ

Little Sub and Apples

Tags:
Time Limit:  1 s      Memory Limit:   256 MB
Submission:1881     AC:768     Score:77.26

Description


Little Sub loves eating apples and he has n apples initially.

In the following t days, Little Sub will eat k apples each day. If the number of apple is less than k, he will eat all apples instead.

Please calculate the number of apples after t days.


Input

In the fisrt line, it contains three integer n, k, t(0 ≤ n, k, t ≤ 2^31 − 1).

Output

Output the answer in one line.

Samples

input
5 2 1
output
3

Author

CHEN, Jingbang