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