Problem7014--ABC172 —— A - Calc

7014: ABC172 —— A - Calc

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Given an integer $a$ as input, print the value $a + a^2 + a^3$.

Input

Input is given from Standard Input in the following format:
$a$

Output

Print the value $a + a^2 + a^3$ as an integer.

Constraints

$1≤a≤10$
$a$ is an integer.

Sample 1 Input

2

Sample 1 Output

14

When $a = 2$, we have $a + a^2 + a^3 = 2 + 2^2 + 2^3 = 2 + 4 + 8 = 14$.

Print the answer as an input. Outputs such as $14.0$ will be judged as incorrect.

Sample 2 Input

10

Sample 2 Output

1110

Source/Category