# No.863 計算量 a = int(input()) b = int(input()) if 40 <= b // a < 1600: print(1) else: print(2)