Time Limit: 1 s
Memory Limit: 256 MB

Submission：1205
AC：462
Score：77.26

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.

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

Output the answer in one line.

input

5 2 1

output

3