a=int(input()) b=int(input()) n=b/(200000)**2-a/(5000)**2 if n < 0: print(1) else: print(2)