Code Submission Evaluation System Login

HIIT Open 2017

Start:2017-05-27 11:00:00
End:2017-05-27 16:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - HIIT Open 2017 - Algorithm

Algorithm

Time limit:0.50 s
Memory limit:512 MB

Uolevi has created the following algorithm:
long long z = 0;
for (int a = 1; a <= n; a++)
    for (int b = a; b <= n; b++)
        for (int c = a; c <= b; c++)
            z++;
cout << z << "\n";

Your task is to find out what the algorithm prints.

Input

The only input line contains an integer $n$: the input for the algorithm.

Output

Print the value of $z$ at the end of the algorithm.

Constraints
Example

Input:
5

Output:
35