from sys import stdin def main(): A, B = [int(input()) for _ in [0] * 2] if B / A <= 820: print(1) else: print(2) input = lambda: stdin.readline() main()