data_s =input() data_n = data_s.split(" ") yasai = 0 nikubai = int(data_n[2]) saidai = int(data_n[3]) if saidai > nikubai: yasai = int(saidai/(nikubai+1)) print(yasai)