#t84. 体育课

体育课

PE Class

Problem Description

The PE teacher has a list of students who like badminton and a list of students who like basketball:  n \,n\, students like badminton and  m \,m\, students like basketball. He now wants to know which students like both basketball and badminton.

Input Format

The first line contains two positive integers  n,m \,n, m\, (1≤n,m≤1001 \le n, m \le 100).

The second line contains  n \,n\, integers  a1,a2,…,an \,a_1, a_2, \dots, a_n\,, the ids of students who like badminton (1≤ai≤1001 \le a_i \le 100).

The third line contains  m \,m\, integers  b1,b2,…,bm \,b_1, b_2, \dots, b_m\,, the ids of students who like basketball (1≤bi≤1001 \le b_i \le 100).

Output Format

Output, in ascending order, the ids of students who like both basketball and badminton.

If there are none, output 00.

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