Find the value of y according to condition:
One integer x (-1000 ≤ x ≤ 1000).
Print the value of y according to the conditional statement above.