a = int(input()) b = int(input()) if b >= a * 40 * 40: print(2) else: print(1)