E004


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho số nguyên dương \(n\).

Yêu cầu: Tính \(s=-1+2-3+4-…+(-1)^n*n\)

Input

  • Gồm một dòng chứa số nguyên \(n (1≤n≤10^6 ).\)

Output

  • Gồm một dòng ghi tổng \(s \) tìm được.

Sample Input

4

Sample Output

2

Comments

There are no comments at the moment.