def solve(): a = int(input()) b = int(input()) return 1 if a * max(a, 100) >= b else 2 print(solve())