Killjee has 2 list of numbers, first one contains integers and second one contains integers.
Killjee pushes all the numbers of first number into his special queue.
After pushing all number of 1st list killjee start pushing elements of 2nd list but queue can't hold more than P integers and all elements of 1st list are distinct, So
Killjee slept after doing the above process for whole list but his nautorius friend beer burnt that secret paper given the two list can you generate the whole secret paper again for killjee as, he is trying to find some job for himself.
INPUT
First line of input contains two space separated integers and .
Second line of input contains space separated integers, elements of first list.
Third line contains space separated integers, elements of second list.
OUTPUT
Print the contents of secret paper which killjee had prepared.
CONSTRAINTS
Numbers in list