Донской Илья Андреевич
31.10.2019 23:40 (19 д. 13:33) [2770747]
print(*sorted(input().split(), key=lambda x: x[1]))