while line = gets
  result = ""
  data = line.chomp.split(//)
  i = 0
  while i < data.size
    if data[i] == "@"
      result +=  data[i+2] * data[i+1].to_i
      i += 2
    else
      result += data[i]
    end
    i += 1
  end
  puts result
end