H,W,N = map(int,input().split(" "))
sr , sc = map(int,input().split(" "))
S = list(input())
T = list(input())

5bc03e88dd285eac2ae55dc3dda8bb2be23d2435
<mask token>

H, W, N = map(int, input().split(' '))
sr, sc = map(int, input().split(' '))
S = list(input())
T = list(input())

H,W,N = map(int,input().split(" "))
sr , sc = map(int,input().split(" "))
S = list(input())
T = list(input())
