N,K=map(int,input().split()) x=0 while x