#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; ll SY,SX,GY,GX; cin>>SY>>SX>>GY>>GX; SY--;SX--;GY--;GX--; bool ys=0,xs=0; if(SY>GY){ SY=N-SY-1; GY=N-GY-1; ys=1; } if(SX>GX){ SX=N-SX-1; GX=N-GX-1; xs=1; } ll d=(GX-SX)+(GY-SY); if(K2*K){ cout<<-1<<"\n"; return 0; } ll e=K-d; vector S(N,string(N,'.')); for(int i=0;i