#include using namespace std; #define FOR(i,a,b) for(int i=a;i=0&&nx=0&&ny=0&&nnx=0&&nny>h>>w; int sx,sy,gx,gy; cin>>sx>>sy>>gx>>gy; sx--;sy--;gx--;gy--; REP(i,h){ REP(j,w){ cin>>field[i][j]; board[i][j]=false; } } board[sx][sy]=true; dfs(sx,sy); if(board[gx][gy]==true){ cout<<"YES"<