A = int(input()) B = int(input()) if abs(A*40 - B)/B <= A*40/B: print(1) else: print(2) #print(A*40 - B)