#PCBSAU0000010. Tổng từ 1 đến n (Sum of the First N Integers)

Tổng từ 1 đến n (Sum of the First N Integers)

Sum of the First N Integers

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive integer nn, compute 1+2+⋯+n1+2+\cdots+n using a closed formula without loops.

Input

One line containing integer nn.

Output

Print 1+2+⋯+n1+2+\cdots+n.

Subtask

  • Subtask 1 — 100 points: 1≤n≤1091\le n\le10^9.

Example

Input

5

Output

15

Explanation

For n=5n=5, the sum 1+2+3+4+51+2+3+4+5 is 1515. The formula 5(5+1)/25(5+1)/2 gives the same result, so print 15.