solution 1 : print 내부 분기 없음
x, y = int(input()), int(input())
if x > 0:
if y>0: print(1)
else: print(4)
else:
if y>0: print(2)
else: print(3)
solution 2 : print 내부 분기로 좀 더 축약
x, y = int(input()), int(input())
if x > 0:
print(1 if y>0 else 4)
else:
print(2 if y>0 else 3)