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

#645. Union (different values)

You are given two lists. Print the **Union (different values)** 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
5
6 2 15 3 4
3
12 9 1
Output
1 2 3 4 6 9 12 15
Input
2
14 14
3
0 13 9
Output
0 9 13 14

💡 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!