from collections import deque H,W,y,x = map(int, input().split()) y -= 1 x -= 1 A = [list(map(int, input().split())) for _ in range(H)] amax = 0 for i in range(H): amax = max(amax, max(A[i])) B = [[0 for _ in range(W)] for _ in range(H)] B[y][x] = 1 cnt = 1 tot = A[y][x] que = deque([]) for dy,dx in [(1,0),(-1,0),(0,1),(0,-1)]: if 0<=y+dyA[i][j]: tot += A[i][j] for dy,dx in [(1,0),(-1,0),(0,1),(0,-1)]: if 0<=i+dyamax: ans = "Yes" break if cnt==cnt0:break cnt0 = cnt print(ans)