There are terrorist and soldiers . Every terrorist has a value and a power which is given by array and where and represents the value and power of ith terrorist respectively. Every soldier also has some value which is given by array where represents the value of ith soldier. Soldiers want to kill terrorists obviously But, a soldier can decrease power of a terrorist by atmost only if (Here "&" is ) is greater than or equal to value of that soldier. And soldiers do the work (reducing power) according to their arrival. more formally, firstly soldier 1 finishes his work then soldier 2, then soldier 3,........ so on.
Terrorist gets killed when it's power becomes .For every terrorist you have to tell the possible index(1-based) of soldier(who reduced the power from to ) by which it will be killed and if this terrorist will alive forever then print .
Input
First line contains .Next three line will contain array , and respectively.
Output
Print integers(space separated) where ith integer represents the answer of ithterrorist.
Constrains
1 <= <= 105
1 <= <= 109
1 <= <= 105
1 <= <= 109