x = float(input())
number = x
if x > 0 :
number = x + 1
elif x < 0 :
number = x - 2
elif x == 0 :
number = 10
print (number)
x = float(input())
number = x
if x > 0 :
number = x + 1
elif x < 0 :
number = x - 2
elif x == 0 :
number = 10
print (number)