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