n = gets
morning_price = 200
afternoon_price = 300
until n.nil?
    x = n.split(" ")
    morning = x[1].to_i
    afternoon = x[2].to_i
    sum_customer = morning + afternoon
    sum_price = (morning * morning_price) + (afternoon * afternoon_price)
    puts "#{x[0]} #{sum_customer} #{sum_price}"
    n = gets
end
