EasyRating 900
Largest GCD of a Pair
Among all pairs of different numbers from 1 to n, what is the largest possible greatest common divisor?
Input
One integer n (2 ≤ n ≤ 10⁶).
Output
One integer.
Sample 1
Input
3
Output
1
Sample 2
Input
5
Output
2
Output appears here