A = int(input()) B = int(input()) ls = [A,B] ls.sort() A,B = ls a = B//A if a < 100: print(1) else: print(2)