a, b, c, d = map(int, input().split()) for i in range(int(a), 0, -1): if d >= i * (c + 1): print(i) exit() else: print(i) exit()