foot, dist = map(int, input().split(' ')) step = 0 while True: step += foot if step >= dist: break print(step)