n, m = map(int,input().split()) if m / n - 0.5 == m // n: print(m // n + 1) else: print(m//n)