Conditional Operator#174

Conditional Operator

1 second
128 megabytes
Very easy (≈850)

Calculate the value of according to the given conditions:

y = \begin{cases} x^3 + 2x^2 +4x - 6, x \ge 0 \\ x^3 - 7x, x < 0 \end{cases}

Input

An integer x~(-1000 \le x \le 1000).

Output

Print the value of according to the given conditions.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading