def solve(): a = int(input()) b = int(input()) return 1 if a * 160 >= b else 2 print(solve())