Problem4096--周周练-寒假4课:数列问题1

4096: 周周练-寒假4课:数列问题1

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

Description

求1-2+3-4+5-6+...±n的值(n为奇数时加,偶数时减)(n<=1000)

Input

一个正整数n

Output

1-2+3-4+5-6+...±n的结果

Sample Input Copy

99

Sample Output Copy

50

Source/Category