抄作业真香
str1 = input()
a = ''
for i in str1:
if i.isalpha():
a+=i
b = sorted(a,key=str.upper)
c= ''
index = 0
for i in range(len(str1)):
if str1[i].isalpha():
c+=b[index]
index+=1
else:
c+=str1[i]
print(c)
抄作业真香
str1 = input()
a = ''
for i in str1:
if i.isalpha():
a+=i
b = sorted(a,key=str.upper)
c= ''
index = 0
for i in range(len(str1)):
if str1[i].isalpha():
c+=b[index]
index+=1
else:
c+=str1[i]
print(c)