A,B = map(int, input().split()) if B%A!=0: remainder = B%A print(B//A+remainder) else: print(B//A)