from heapq import heappop,heappush I=lambda:map(int,raw_input().split()) N,V,x,y=I();o=(x-1,y-1);g=(N-1,N-1);L=[I()for i in xrange(N)] dxy=((1,0),(0,1),(-1,0),(0,-1));D=[N*[0]for i in xrange(N)];D[0][0]=-V Q=[];heappush(Q,(-V,(0,0,True))) while Q: v,h,f=heappop(Q) if h == g:print"YES";break for dx,dy in dxy: nx=h[0]+dx;ny=h[1]+dy if 0<=nx