import sys input = sys.stdin.readline from heapq import * N,M=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) idxs = [1]*N heap = [ (-a/B[0],i) for i,a in enumerate(A)] heapify(heap) while M: _,i = heappop(heap) print(i+1) M-=1 j = idxs[i] idxs[i] = j+1 if j