A deck of card consists of
Please output the order of cards after
输出最后一个数后有空格,无换行
The first line of input contains two positive integers
The second line of the input file has n Numbers, a sequence of 1 through
Next there are m rows, each of which has a positive integer
5 3 1 2 3 4 5 3 4 3
3 4 1 2 5