3 1 5 4 2 6
1 2 3 4 5 6
a = list(map(int, input().split())) b = list(map(int, input().split())) result = sorted(a + b) print(*result)