#yuki663 a=int(raw_input()) b=int(raw_input()) if a*1600<=b: print 2 else: print 1