a = int(input()) b = int(input()) if b // a <= 120: ans = 1 else: ans = 2 print(ans)