You are given two integer arrays. Find every value that appears in both arrays. List each such value once, sorted in ascending order.
If no value is common to both arrays, print an empty line.
Input format
Line 1: an integer n, the size of the first array.
Line 2: n space-separated integers, the first array.
Line 3: an integer m, the size of the second array.
Line 4: m space-separated integers, the second array.
Output format
One line: the common values, each printed once, in ascending order, space-separated. If there are none, print an empty line.
Constraints
- 1 <= n, m <= 100000
- -1000000000 <= each value <= 1000000000