#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,K; cin >> N >> K; int sx,sy,gx,gy; cin >> sx >> sy >> gx >> gy; sx--,sy--,gx--,gy--; int d = abs(sx-gx)+abs(sy-gy); if(K < d || d*2 < K){cout << "-1\n"; return 0;} vector S(N); for(int i=0; i