import sys # sys.setrecursionlimit(5*10**5) input = sys.stdin.readline from collections import defaultdict, deque, Counter from heapq import heappop, heappush from bisect import bisect_left, bisect_right from math import gcd h,w,k,l,r = map(int,input().split()) if (r-l + 1) % 2 != 0: print("No") exit() s = [input().rstrip() for i in range(h)] dx = [0,0,1,-1] dy = [1,-1,0,0] def bfs(x,y): que = deque([x*w+y]) depth = [-1]*(w*h) depth[x*w+y] = 0 pre = [-1]*(h*w) while que: crr= que.popleft() x,y = crr//w, crr%w for i in range(4): nx = x+dx[i] ny = y+dy[i] nxt = nx*w+ny if not(0<=nx