x,y,z,w = gets.split.map(&:to_i) puts x-((x+y*z).to_f)/2