def inpl(): return list(map(int, input().split())) A = int(input()) B = int(input()) X = 5000 Y = 200000 print(1 + (B/A>1000))