eolymp
Problems

Function - 5

Function - 5

Time limit 1 second
Memory limit 128 MiB

Impement the function f(x, y, z) = xyz + x + y^2 + z^3.

Input data

Three positive integers x, y, z (x, y, z10^6).

Output data

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

Examples

Input example #1
1 2 3
Output example #1
38