e-olymp
Problems

Function - 5

Function - 5

Impement the function f(x, y, z) = xyz + x + y2 + z3.

Input

Three positive integers x, y, z (x, y, z106).

Output

Print the value of the function f(x, y, z).

Time limit 1 second
Memory limit 128 MiB
Input example #1
1 2 3
Output example #1
38