from math import gcd n = int(input()) n2 = n * (n - 1) // 2 print(gcd(n, n2))