N,K=map(int,input().split()) X=list(map(int,input().split())) P=[1 for _ in range(N)] l=0 r=1 while l