Загрузка данных
r = int(input()) k = int(input()) p = int(input()) s = int(input()) x = (s - k * p) // (r + 1) print(x)