A = int(input()) B = int(input()) C = B / A P = 40 Q = 1600 if abs(C - P) < abs(Q - C) : print(1) else : print(2)