#t84. 体育课
体育课
PE Class
Problem Description
The PE teacher has a list of students who like badminton and a list of students who like basketball: students like badminton and students like basketball. He now wants to know which students like both basketball and badminton.
Input Format
The first line contains two positive integers ().
The second line contains integers , the ids of students who like badminton ().
The third line contains integers , the ids of students who like basketball ().
Output Format
Output, in ascending order, the ids of students who like both basketball and badminton.
If there are none, output .
Sample Input 1
5 6
2 9 7 8 3
1 2 3 4 5 6
Sample Output 1
2 3
Sample Input 2
3 7
1 2 3
4 5 6 7 8 9 10
Sample Output 2
0