Find the value of y according to the following condition:
One integer x~(-1000 \le x \le 1000).
Print the value of y according to the given condition.
Primer 1
Primer 2