n = int(input())

s = 0

while n > 0:
    s += (-1) ** (n-1) * n
    n -= 1

print(s)