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