#A
a=input()
print("".join(sorted(a)))
#B
a=input()
sonlar=[]
harflar=[]
for i in range(len(a)):
if a[i].isdigit():
sonlar.append(i)
else:
harflar.append(ord(a[i]))
harflar.sort()
joylashuvi=0
natija=""
for i in range(len(a)):
if i in sonlar:
natija+=a[i]
else:
natija+=chr(harflar[joylashuvi])
joylashuvi+=1
print(natija)
#E
a = input()
start = False
commands = []
language = "eng"
answerlist1 = {
"Change language to Russian": "Язык поменялся на Русский.",
"Change language to Uzbek": "Til O'zbek tiliga o'tdi.",
"Change language to English": "Language is changed to English."
}
answerlist2 = {
"eng": "Hello, this Telegram bot is a functional bot.",
"rus": "Здравствуйте, этот Telegram бот является функциональным ботом.",
"uzb": "Salom, bu Telegram bot funksiyalar bajariladigon bot."
}
registerlist = []
while a != "":
if a not in ["Finish", "Start"] and start:
commands.append(a)
elif a == "Start":
start = True
elif a == "Finish":
break
a = input()
answers = []
for command in commands:
parts = command.split()
if command in answerlist1:
answers.append(answerlist1[command])
if "Russian" in command:
language = "rus"
elif "English" in command:
language = "eng"
elif "Uzbek" in command:
language = "uzb"
elif command == "About bot":
answers.append(answerlist2[language])
elif "Register" in parts[0]:
if len(parts) >= 3:
name = parts[1] + " " + parts[2]
if language == "uzb":
answers.append(f"{name} ro'yxatdan o'tdi.")
elif language == "rus":
answers.append(f"{name} зарегистрирован.")
else:
answers.append(f"{name} registered.")
registerlist.append(name)
else:
if len(parts) >= 3:
name = parts[1] + " " + parts[2]
if name in registerlist:
if language == "uzb":
answers.append(f"{name} ro'yxatdan o'tgan.")
elif language == "rus":
answers.append(f"{name} уже зарегистрирован.")
else:
answers.append(f"{name} is already registered.")
else:
if language == "uzb":
answers.append(f"{name} ro'yxatdan o'tmagan.")
elif language == "rus":
answers.append(f"{name} не зарегистрирован.")
else:
answers.append(f"{name} is not registered.")
for i in answers:
print(i)