Gera has bought a new car and is very concious about the environment. The mechanic has told him that if he drives the car at a certain speed then the pollution levels would be minimum. The mechanic would not tell Gera the required speed so easily so he gave him a problem to solve, the answer to the problem is the required answer. The question is that he is given an Arithmetic Progression, i.e, the first element (a) and the common difference (d) of the AP. He is also given a number (N). The largest number less than or equal to N which occurs in the given AP is the required speed. Help Gera to find this speed.
Input Format: The first and only line of input contains three integers 'a', 'd' and 'N' in this order.
Output Format: Print only one integer that is the required speed.
Constraints:
0 <= a <= N <= 10^6 -10^6 <= d <= 10^6
Sample Input:
1 1 5
Sample Output:
5
Sample Input:
1 2 8
Sample Output:
7
Author : Yash Govind Tiwari Himanshu Gera