x = float(input())
y = float(input())
     
if x>0 and y>0:
      print("1")
elif x<0 and y>0:
      print("2")
elif x<0 and y<0:
    print("3")
elif x>0 and y<0:
      print("4")
elif x == 0:
      print("5")
elif y == 0:
      print("6")
