fork(1) download
  1. _=input()
  2. lista1 = list(map(int, input().split()))
  3. lista2 = list(map(int, input().split()))
  4. print(sorted(lista1+lista2))
  5.  
Success #stdin #stdout 0.02s 9828KB
stdin
6 5
1 3 4 5 6 7
2 3 6 6 7
stdout
[1, 2, 3, 3, 4, 5, 6, 6, 6, 7, 7]