Чернов Дмитрий Дмитриевич
08.01.2020 09:42 (87 д. 23:35) [3022407]
print(" ".join(sorted(input().split(), key=lambda x: x[1])))