import sys input=lambda: sys.stdin.readline().rstrip() a=int(input()) b=int(input()) if b/a>=1600: print(2) else: print(1)