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