a, b = io.read("*n", "*n") print(a * 1000 < b and 2 or 1)