Skip to main content

~/algor $ cat contests/round-9/C

C. Products of neighbours

Problem C ICPC rules 1000 ms 64 MB

A positive integer is given. Compute the sum:

The sum of products of neighbouring numbers

Input

One positive integer .

Output

One integer — .

Note

Examples

Input #1
3
Output #1
20
Input #2
5
Output #2
70

Sign in to submit a solution

Signing up is free and takes a minute.