p,d,m,s=map(int,input().split()) su=0 n=0 while sum: su+=p p-=d n+=1 if su