#C3542. Sum of Squares Calculation

    ID: 46981 Type: Default 1000ms 256MiB

Sum of Squares Calculation

Sum of Squares Calculation

Given an integer n, calculate the sum of squares of the first n positive integers. In mathematical notation, you need to compute the value:

\( S = \sum_{i=1}^{n} i^2 = 1^2 + 2^2 + \cdots + n^2 \)

You should read the input from stdin and print the result to stdout. The input consists of a single integer. Ensure your solution handles the minimum input value (n = 1) as well as larger values efficiently.

inputFormat

The input is provided via standard input (stdin) and consists of a single line containing one integer n (1 ≤ n ≤ 104).

outputFormat

Output a single integer: the sum of squares of the first n positive integers, computed as \(1^2 + 2^2 + \cdots + n^2\).

## sample
1
1