def solve(A, B):
    k = B/float(A)
    if k < 300: return 1
    return 2

A = int(raw_input())
B = int(raw_input())

print solve(A, B)