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