j, m, b = gets.to_s.split(",").map{ |e| e.to_i } puts "合計点:#{j + m + b}" puts format("平均点:%.1f", (j + m + b) / 3.0)