Гоменюк Александр Александрович
12.10.2019 13:06 (2:58) [2715246]
print(' '.join(sorted(input().strip().split(), key=lambda s: s[1])))