while s = gets
    s = s.chomp
    ans = String.new()
    for i in 0..s.length-1 do
        if s[i] == "@"
            ans += s[i+2]*(s[i+1].to_i)
            i += 2
        else
            ans += s[i]
        end
    end
    printf("%s\n", ans)
end