s=input()
d={}
l=[]
for i in range(len(s)):
    if(s[i].isalnum()==False):
        d[i]=s[i]
    else:
        l.append(s[i])
l=l[::-1]
print(l)
for i in d:
    l.insert(i,d[i])
for i in l:
    print(i,end='')

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: