# -*- coding utf-8 -*-

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

l.sort()

desc = "{0} {1} {2}".format(l[0],l[1],l[2])

print(desc)
# -*- coding: utf-8 -*-

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



l.sort()



l = list(map(str,l))

l = ' '.join(l)

print(l)

# -*- coding utf-8 -*-
l = list(map(int, input().split()))
l.sort()
desc = "{0} {1} {2}".format(l[0], l[1], l[2])
print(desc)

# -*- coding: utf-8 -*-
l = list(map(int, input().split()))
l.sort()
l = list(map(str, l))
l = " ".join(l)
print(l)

-# -*- coding utf-8 -*- +# -*- coding: utf-8 -*- -desc = "{0} {1} {2}".format(l[0], l[1], l[2]) -print(desc) +l = list(map(str, l)) +l = " ".join(l) +print(l)