n=list(map(int,input().split())) x=n[3]//(n[2]+1) y=n[1]//n[2] a=x if x