import sys import math as mas n=int(input()) print((n-1)*(n-1)//4) #for i in sys.stdin: # a,b=map(int,i.split()) # print(gcd(a,b),lcm(a,b))