a = int(input()) b = int(input()) c = b / a if abs(c - 40) < abs(c - 1600): print(1) else: print(2)