1068: 高斯求和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:30 Solved:17

Description

数学家高斯很小的时候就能快速算出1+2+3+......+100=5050。现在要求完成输入一个整数n,输出1+2+3+...+n的和

Input

5

Output

15

Sample Input Copy

100

Sample Output Copy

5050