while a = gets
  arr = a.chomp.split("")
  len = arr.length

  w = 0; ans = Array.new
  while w <= len - 1
    if arr[w] == "@"
      word = arr[w+2] * arr[w+1].to_i
      w += 3
      ans.push(word)
    else
      ans.push(arr[w])
      w += 1
    end
  end
  puts ans.join
end