#野菜 肉 倍数 まで a,b,c,d=map(int,input().split()) #野菜を最大食べたときの肉 #1 4 5 #2 8 10 #3 12 15 for i in range(1,100): n=i*c if n>b: s=i break print(s-1)