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