N,K=map(int,input().split()) X,Y=[],[] for i in range(N): x,y=map(int,input().split()) X.append(x) Y.append(y) def dist(i,j): if j==-1: i,j=j,i if i==-1: return (X[j]**2+Y[j]**2)**.5 return ((X[i]-X[j])**2+(Y[i]-Y[j])**2)**.5 inf=1e20 dp=[[inf]*N for bit in range(1<