Sum#641

Sum

0.5 seconds
256 megabytes
Very easy (≈850)

Given a natural number , calculate the following sum :

S = 1^2 + 2^2 + 3^2 + \cdots + n^2

Input

The input contains a single natural number (1 \leq n \leq 10^6).

Output

Output the sum .

Examples

Example 1

Loading
Loading

Scoring

Each correct test case will earn points. The total score is 100.