char s[199][99];ll n=1,m,a,b,x,y,t;ll f(ll p,ll q){for(ll T=4*!s[p+99][q]++;T--;t=n,n=m,m=-t)t=s[p][q],a=t-s[p+n][q+m],t=a*a<2?:t-s[p+n+n][q+m+m]|a<0?0:2,f(p+n*t,q+m*t);}{rd(t,b,a,b,x,y,s(t));f(a-1,b-1);wt(s[x+98][y-1]?"YES":"NO");}