A, B = [int(input()) for _ in range(2)] print(2 if B/A >= 1600 else 1)