
answers = Array.new

while s = $stdin.gets
	strary = s.chomp.split(//)

	i = 0
	outstr = ''
	while i < strary.size
		c = strary[ i ]
		if c == '@'
			i += 1
			n = strary[ i ].to_i
			i += 1	
			c = strary[ i ]

			1.upto( n ){
				outstr += c
			}
		else	
			outstr += c
		end
		i += 1
	end
	answers << outstr
end
answers.each{ |a| puts a }
