import sys input = sys.stdin.readline from heapq import heappush,heappop,heapify,heappushpop from heapq import * from heapq import _heappop_max,_heapify_max,_siftdown_max heappop_max = _heappop_max;heapify_max = _heapify_max def heappush_max(heap:list,item): heap.append(item); _siftdown_max(heap, 0, len(heap)-1) H,W,Y,X=map(int,input().split()) A=[list(map(int,input().split())) for _ in range(H)] INF=float("inf") dp = [[0]*W for _ in range(H)] dp[Y-1][X-1]=A[Y-1][X-1] A[Y-1][X-1]=0 que = [(dp[Y-1][X-1],Y-1,X-1)] while que: a,y,x=heappop_max(que) A[y][x]=0 for ny,nx in [(y-1,x),(y+1,x),(y,x-1),(y,x+1)]: if 0<=ny