u, b, h = gets.to_s.split(",").map{ |e| e.to_i } puts format("%.2f", (u + b) * h / 2.0)