from re import I
n=int(input())
sum=0
for i in range(1,n+1):
    if i%2==0:
        i=(-1)*i
    sum+=i
print(sum)