#encoding:utf-8 No.0077 2014.10.8
while true
  str = gets.chomp.split("")
  if str == []
    break
  end

  str.length.times do |i|
    if str[i] == "@"
      str[i,3] = str[i+2]*str[i+1].to_i
    end
    print str[i]
  end
  print "\n"
end