Competitions
Week 2 Conditionals Part 1
Conditional statement - 3
Find the value of y according to condition:
y = \begin{cases}
x + 5, x < -4 \\
x^2 - 3x, -4 \le x \le 7 \\
x^3 + 2x, x > 7
\end{cases}
Input data
One integer x~(-100 \le x \le 100).
Output data
Print the value of y according to the conditional statement above.
Examples
Input example #1
3
Output example #1
0
Input example #2
-8
Output example #2
-3