import sys input = sys.stdin.readline N,M=map(int,input().split()) A=list(map(int,input().split())) if M==0: for i in range(N,0,-1): print(i) exit() COUNT=[0]*N need=0 ANS=[0]*(N+5) ind=0 for i in range(N): while need