l=int(input()) if l==3: print(1) else : a=l-2 b=(l-3)/2+1 c=int((a-1)/2) d=c/2 e=1+c f=d*e g=f*2 g+=b print(int(g))