4347. ADD

Naive编程基础输入输出循环

时间限制:2000 ms

内存限制:512 MiB

题面

Write a program to input an integer n, and to output sum of 1,2,…,n.

输入格式

input an integer n.

输出格式

output sum of 1,2,…,n.

样例

输入

10

输出

55

输入

1

输出

1

输入

1000

输出

500500