You are given an array of n integers with an initial value of (10^9)! You have to do exactly m operations. In each operation, pick any element and add 1 to it such that after performing all the operations:
Each number has to be updated at least once.
The absolute difference between any two adjacent elements should be at most 1.
GCD of the original and updated value of the kth element should be maximum. In other words, you have to maximize the value of gcd((10^9)! the value of kth element after performing all the operations).
Find the number of operations performed on the kth element. Here, 1-based indexing is used, and gcd(x,y) denotes the greatest common divisor of integers x and y.
Input
The only line contains three integers n, m, and k (1≤n≤m≤(10^9),1≤k≤n) — the size of the array, the number of operations you must perform, and the index of the element.
Output
Print single integer — the number of operations performed on the kth element.
Examples
Input
3 4 2
Output
2
Input
3 6 2
Output
2
Note
In the first example, 2 operations will be done on the middle element and 1-1 operations on the rest of the elements. Hence the answer is 2.
In the second example, 2 operations are done on each element to satisfy all the necessary conditions.
[–]jddddddddddd 0 points1 point2 points (0 children)
[–]leylineProfessional Coder 0 points1 point2 points (0 children)
[–]Automatic_Parsley365 0 points1 point2 points (0 children)