n,k=map(int,input().split()) xlist=list(map(int,input().split())) i=0 while True: if len(xlist)<=i+1: break if abs(xlist[i+1]-xlist[i])