CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #642 #644 →

#643. Merge the two lists and sort

You are given two lists. Print the **Merge the two lists and sort** in increasing order. If it is empty, print `None`. ### Input The first two lines have n and the list a, the next two lines have m and the list b. ### Output One line.

Examples

Input
7
7 0 8 1 6 3 8
7
9 1 8 1 10 0 14
Output
0 0 1 1 1 3 6 7 8 8 8 9 10 14
Input
5
15 5 8 4 9
4
12 4 12 15
Output
4 4 5 8 9 12 12 15 15

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!