include
include
using namespace std;
int main ()
{
int n,m;
cin>>n>>m;
int a[m+n];
for (int i=0;i<m+n;i++)
{
cin>>a[i];
}
sort(a, a+m+n ,less<int>());
for (int i=0;i<m+n;i++)
{
cout<<a[i]<<" ";
}</int>
}