n1 = int(input()) n2 = int(input()) if n2/2 < n1*40 < n2*2: print("1") else: print("2")