_=input()lista1 = list(map(int, input().split()))lista2 = list(map(int, input().split()))print(sorted(lista1+lista2))
6 5 1 3 4 5 6 7 2 3 6 6 7
[1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!