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