A = int(input()) B = int(input()) if A * 1600 <= B: print(2) else: print(1)