readlines.each do |l|
	output_str = Array.new
	input_ary = l.chomp.split('')
	counter = 0
	0.upto(input_ary.size-1) do |i|
		if counter > 0
			counter -= 1
			next
		end
		if input_ary[i] == '@'
			n = input_ary[i+1].to_i
			c = input_ary[i+2]
			n.times{output_str << c}
			counter = 2
		else
			output_str << input_ary[i]
		end
	end
	puts output_str.join
end