import sys
import math
i = int(input())

def func(i):
    r = 0
    for j in range(1,i+1):
        r += (-1)**(j-1)*j
    print(r)

func(i)