#! /usr/bin/env python

# coding: utf-8



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

for i in list:

    print(i, end=' ')
#! /usr/bin/env python

# -*- coding: utf-8 -*-



raw_list = sorted(map(int, input().split()))

print(("%d %d %d") % (raw_list[0], raw_list[1], raw_list[2]))
#! /usr/bin/env python
# coding: utf-8
list = sorted(map(int, input().split()))
for i in list:
    print(i, end=" ")

#! /usr/bin/env python
# -*- coding: utf-8 -*-
raw_list = sorted(map(int, input().split()))
print(("%d %d %d") % (raw_list[0], raw_list[1], raw_list[2]))

-# coding: utf-8 -list = sorted(map(int, input().split())) -for i in list: -    print(i, end=" ") +# -*- coding: utf-8 -*- +raw_list = sorted(map(int, input().split())) +print(("%d %d %d") % (raw_list[0], raw_list[1], raw_list[2]))