Skip to main content

~/algor $ cat contests/round-7/L

L. Sum from 1 to n

Problem L ICPC rules 1000 ms 64 MB

A positive integer is given. Find the sum of all positive integers from to :

A staircase of columns of height 1, 2, ..., n; the total number of cells is the answer

Input

One positive integer .

Output

One integer — the sum.

Note

Examples

Input #1
5
Output #1
15
Input #2
1
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.