10661: 20140120思考题:编程求解数学中的分段函数。

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

编程求解数学中的分段函数。
                 x+1 (x>0)
y=f(x)=      0    (x=0)
                  x-1 (x<0)

Input

一行,只有一个整数x(-30000<=x<=30000)

Output

只有一行,包括1个整数(y)

Sample Input Copy

3

Sample Output Copy

4