import scala.io.Source.stdin

object Main extends App {
  def decode(s:String) = {
    def scan(t:String,i:Int):String = {
      if(i >= s.length) t
      else {
        if(s(i) == '@') scan(t + (s(i+2).toString * s(i+1).asDigit),i+3)
        else scan(t + s(i),i+1)
      }
    }
    scan("",0)
  }

  stdin.getLines.foreach { s=> println(decode(s)) }
}