a, b = [int(input()) for i in range(2)] ans = 1 if a * 40 <= b < (a + 1) * 40: pass else: ans += 1 print(ans)