h,w,k,l,r=map(int,input().split()) X=[] for i in range(h): s=input() S=[str(c) for c in s] X.append(S) if r==k or (r+l)%2==0 or k%2!=0: print("No") exit() X[0][0]=1 ex=[[0,0]] point=0 while point!=len(ex): II=ex[point] now=X[II[0]][II[1]] for I in [[1,0],[-1,0],[0,1],[0,-1]]: if 0<=II[0]+I[0]k-r+l-1: print("No") exit() ans="" #print(X) II=[h-1,w-1] point=X[-1][-1] VM=["","L","","U","D","","R"] for i in reversed(range(point)): for I in [[1,0],[-1,0],[0,1],[0,-1]]: if 0<=II[0]+I[0]