n = int(input())
if n % 2 == 1:
    # 奇数项和:(n + 1) // 2
    print((n + 1) // 2)
else:
    # 偶数项和:-n // 2
    print(-n // 2)