l = list(map(int, input().split()))

for j in range(4):
    for i in range(len(l)- 1):
        if l[i] > l[i + 1]:
            l[i], l[i + 1] = l[i + 1], l[i]


    
for s in range(4):
    print(l[s], end = " ")