while line = STDIN.gets
  line.chomp!
  is_at=false
  how_many=0
  expanded_text=""
  line.chars.each do |c|
    if c == "@" then
      is_at=true
    elsif is_at then
      how_many=c.to_i
      is_at=false
    elsif how_many > 0 then
      expanded_text+=c*how_many
      how_many=0
    else
      expanded_text+=c
    end 
  end
  puts expanded_text
end