Conditional statement - 4
Execution time limit is 1 second Runtime memory usage limit is 128 megabytes Find the value of y according to condition:
y={x3+2x2+4x−6,x≥0x3−7x,x<0
Input
One integer x (−1000≤x≤1000).
Output
Print the value of y according to the conditional statement above.
Examples