check(now.x+i,now.y+j,1))continue;// cout<<" i = "<<i<<" j = "<<j<<endl;if(now.x+i==X) {cout<<now.di+1;return0; }if(dis