eolymp
bolt
Try our new interface for solving problems
Problems

Conditional statement - 2

Conditional statement - 2

Time limit 1 second
Memory limit 128 MiB

Find the value of y according to the following condition:

y = \begin{cases} x^3 + 5x, x \ge 10 \\ x^2 - 2x + 4, x < 10 \end{cases}

Input data

One integer x~(-10^4 \le x \le 10^4).

Output data

Print the value of y according to the given condition.

Examples

Input example #1
2
Output example #1
4
Input example #2
20
Output example #2
8100