a,b=map(int,input().split())
m=list(map(int,input().split()))
n=list(map(int,input().split()))
m.extend(n)
m.sort()
print(*m)
'백준 풀이' 카테고리의 다른 글
백준 10867번 파이썬 (0) | 2022.08.27 |
---|---|
백준 2740번 파이썬 (0) | 2022.08.27 |
백준 9655번 파이썬 (0) | 2022.08.26 |
백준 11004번 파이썬 (0) | 2022.08.26 |
백준 1789번 파이썬 (0) | 2022.08.26 |