n = int(input())

if n % 2 == 0:
    s = (n // 2) - n
else:
    s = (n // 2) + 1
print(s)