$<.readlines.map(&:chomp).each do |given|
  text = ""
  while given.length > 0
    if given[0] == "@"
      text += given[2] * given[1].to_i
      given = given[3..-1]
    else
      text += given[0]
      given = given[1..-1]
    end
  end
  puts text
end
