x, y, z, w = map(int, input().split())
num=[x, y, z, w] 
num.sort()
for i in num:
    print(i,end=" ")