#!/usr/bin/ruby
# coding: utf-8

PI = Math.acos(-1)

while true
  line = gets
  if line == nil
    break
  end
  line = line.chomp
  i = 0
  while i < line.length
    c = line[i]
    if c == '@'
      for k in 1..(line[i+1].to_i)
        print line[i+2]
      end
      i += 3
    else
      print c
      i += 1
    end
  end
  puts ''
end