import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES") no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO") ####################################################################### h,w,y,x = na() y-=1 x-=1 a = [na() for i in range(h)] from heapq import * hq = [(a[y][x], y, x)] z = a[y][x] hq = [] visited = [[0 for j in range(w)]for i in range(h)] visited[y][x] = 1 for dy, dx in [[1,0],[-1,0],[0,1],[0,-1]]: nx = x + dx ny = y + dy if 0 <= ny < h and 0 <= nx < w and visited[ny][nx]^1: heappush(hq, (a[ny][nx],ny,nx)) visited[ny][nx] = 1 ans = 1 while hq: v,y,x = heappop(hq)#print(v,y,x) if z <= v: ans = 0 break z += v for dy, dx in [[1,0],[-1,0],[0,1],[0,-1]]: nx = x + dx ny = y + dy if 0 <= ny < h and 0 <= nx < w and visited[ny][nx]^1: heappush(hq, (a[ny][nx],ny,nx)) visited[ny][nx] = 1 if ans: Yes() else: No()