inputer = input() inputer_s = inputer.split(" ") a_num = int(inputer_s[0]) b_num = int(inputer_s[1]) result = 0 if b_num==0: result = 1 elif a_num == 0: result = -1 else: if b_num > 0: if a_num < 0: result=2 else: result=-1 elif b_num < 0: if a_num > 0: result=2 else: result=-1 print(result)