A = int(input()) B = int(input()) if B//A >= 1600: print(2) else: print(1)