class RadixSort():
def __init__(self, arrx):
self.start(arrx)
def start(self, arr):
# buckets有十个桶
buckets = []
for i in range(10):
buckets.append([])
# 基数设置为6位
for i in range(6):
for j in arr:
buckets[(j // int(pow(10, i))) % 10].append(j)
#清空 arr
arr.clear()
#重新排序 并放入arr中
for k in buckets:
for z in k:
arr.append(z)
#清空所有桶内容
for u in buckets:
u.clear()
if __name__ == '__main__':
x = input().split(' ')
data = [int(n) for n in x]
RadixSort(data)
print(data)