N = int(input()) if N%2==1: print(1) exit() if N==2: print(2) exit() ans = (N-2)*(N-1)//2 print(ans)