Tổng từ 1 ver2

View as PDF

Submit solution

Points: 0.01 (partial)
Time limit: 0.2s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Cho 1 số nguyên n (Với 1≤n≤10^9). Tính tổng các số nguyên từ 1 đến n.

Input

Dòng đầu tiên có chứa 1 số nguyên n (Với 1≤n≤10^9).

Output

Một dòng duy nhất là 1 số là tổng các số nguyên từ 1 đến n.

Simple Examples

Input

1

Output

1

Input

3

Output

6

Comments

Please read the guidelines before commenting.


There are no comments at the moment.