n = int(input())
S = 0
for i in range (1,n+1):
    S = S+(-1)**(i-1)*i
print (S)