fork(2) download
  1. sA, sB=map(int,input().split())
  2. A=list(map(str,input().split()))
  3. B=list(map(str,input().split()))
  4. C=A+B
  5. C.sort()
  6. print(' '.join(C))
Success #stdin #stdout 0.03s 9832KB
stdin
1 1
10
9
stdout
10 9