#D12636. Set Intersection
Set Intersection
Set Intersection
Find the intersection of two sets and .
Constraints
Input
The input is given in the following format.
Elements of and are given in ascending order respectively. There are no duplicate elements in each set.
Output
Print elements in the intersection in ascending order. Print an element in a line.
Example
Input
4 1 2 5 8 5 2 3 5 9 11
Output
2 5
inputFormat
Input
The input is given in the following format.
Elements of and are given in ascending order respectively. There are no duplicate elements in each set.
outputFormat
Output
Print elements in the intersection in ascending order. Print an element in a line.
Example
Input
4 1 2 5 8 5 2 3 5 9 11
Output
2 5
样例
4
1 2 5 8
5
2 3 5 9 11
2
5
</p>