A = int(input()) B = int(input()) if B > A * 500: print('2') else: print(1)