import sys import numpy as np from heapq import heappush, heappop def main(): h, w, sy, sx = map(int, input().split()) A = np.fromstring(sys.stdin.read(), np.int64, sep=' ').reshape(-1, w) sy -= 1 sx -= 1 b = A[sy, sx] A[sy, sx] = 0 q = [(0, sy, sx)] cnt = 0 dyx = [[1, 0], [-1, 0], [0, 1], [0, -1]] B = np.zeros_like(A, np.bool_) B[sy, sx] = True while q: a, y, x = heappop(q) if b <= a: break cnt += 1 b += a for i in range(4): dy, dx = dyx[i] Y, X = y + dy, x + dx if Y < 0 or Y >= h or X < 0 or X >= w: continue if B[Y, X]: continue heappush(q, (A[Y, X], Y, X)) B[Y, X] = True print('Yes' if cnt == h * w else 'No') if __name__ == '__main__': main()