H,W,Y,X = map(int,input().split()) seen = [[False] * W for _ in range(H)] INF = float('inf') memo = [[-INF] * W for _ in range(H)] A = [] for _ in range(H): tmp = list(map(int,input().split())) A.append(tmp) def check(h,w): if 0 <= h < H and 0 <= w < W: return True else: return False ans = False def dfs(h,w,a): global ans if h == H -1 and w == W-1: ans = True return seen[h][w] = True memo[h][w] = a for dh,dw in [(-1,0),(1,0),(0,1),(0,-1)]: nh = h + dh nw = w + dw if check(nh,nw) and not seen[nh][nw] and A[nh][nw] < a: dfs(nh,nw,a + A[nh][nw]) seen[nh][nw] = False if check(nh,nw) and seen[nh][nw] and memo[nh][nw] < a: dfs(nh,nw,a) dfs(Y-1,X-1,A[Y-1][X-1]) if ans: print('Yes') else: print('No')