u, b, a = read_line.split(',').map(&.to_i) puts "%.2f" % ((u + b) * a / 2)