a = int(input()) b = int(input()) print(1 if b//a <= 100 else 2)