Alternating Sum


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Compute \(f(n)=-1+2-3+4-...+(-1)^n*n\).

Input

One line containing \(n\).

The input satisfies:

  • \(1 \le n \le 10^16\)

Output

Print \(f(n)\).

Example

Input
2
Output
1

Comments

There are no comments at the moment.