<reponame>1109450752/homework3
a,b,c=eval(input(">>"))
s=[]
s.append(a)
s.append(b)
s.append(c)
#print(s)
q=s
#print(q)
q.sort()
print(q)

a,b,c=eval(input(">>"))
s=[]
s.append(a)
s.append(b)
s.append(c)
#print(s)
q=s
#print(q)
q.sort()
print(q)
#print(s) #print(q)