A=[int(input()) for _ in range(2)] print(1 if A[1]/A[0]<1600 else 2)