Sum of squares of numbers from 1 to N

Kotlin Easy loops

Task «Sum of squares of numbers from 1 to N»

Write a program that reads a positive integer N and calculates the sum of squares of all integers from 1 to N inclusive. Use a for loop. It is guaranteed that N does not exceed 1000.

Input Format

One integer N (1 ≤ N ≤ 1000).

Output Format

One integer — the sum of squares of numbers from 1 to N.

Examples

Example 1

INPUT
1
OUTPUT
1

Example 2

INPUT
10
OUTPUT
385

Example 3

INPUT
1 2 3 2 1
OUTPUT
2
main.kt