Ахрамеев Дмитрий Викторович
22.01.2020 20:52 (102 д. 10:44) [3134244]
print(' '.join(input().split().sort(key=lambda x: x[1])))