N-distance