LearnPy Hub
← Arena
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
solution.py
Output appears here
Largest GCD of a Pair · Python Arena problem · LearnPy Hub