e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

sgn function

sgn function

Find the value of sgn function:

prb8608.gif

Input

One integer x (-109x109).

Output

Print the value of sgn function for given value of x.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4
Output example #1
1
Input example #2
0
Output example #2
0
Input example #3
-2
Output example #3
-1