a, b = [int(i) for i in input().split()] ans = - (-b // a) // 2 print(ans)