Find the value of y according to the following condition:
One integer x(−1000≤x≤1000).
Print the value of y according to the given condition.