Problem: Simon loves neatness. So before he goes to bed, Simon wants to complete all chores in the house.

Simon's house looks like a rectangular table consisting of n rows and n columns from above. All rows of the table are numbered from 1 to n from top to bottom. All columns of the table are numbered from 1 to n from left to right. Each cell of the table is a room. Pair (x, y) denotes the room, located at the intersection of the x-th row and the y-th column. For each room we know if the light is on or not there.

Initially Simon is in room (x0, y0). He wants to turn off the lights in all the rooms in the house, and then return to room (x0, y0). Suppose that at the current moment Simon is in the room (x, y). To reach the desired result, he can perform the following steps:

  1. The format of the action is "1". The action is to turn on the light in room (x, y). Simon cannot do it if the room already has light on. 
  2. The format of the action is "2". The action is to turn off the light in room (x, y). Simon cannot do it if the room already has light off. 
  3. The format of the action is "dir" (dir is a character). The action is to move to a side-adjacent room in direction dir. The direction can be left, right, up or down (the corresponding dir is L, R, U or D). Additionally, Simon can move only if he see a light in the direction dir. More formally, if we represent the room, Simon wants to go, as (nx, ny), there shold be an integer k (k > 0), that room (x + (nx - x)k, y + (ny - y)k) has a light. Of course, Simon cannot move out of his house. 



Help Simon, find the sequence of actions that lets him achieve the desired result.

Input

The first line contains three positive integers n, x0, y0 (2 ≤ n ≤ 500, 1 ≤ x0, y0 ≤ n).

Next n lines contain the description of rooms in the house. The i-th line contains n space-separated integers ai1, ai2, ..., ain. If number aij equals zero, then room (i, j) has light off, and if number aij equals one, then room (i, j) has light on. It is guaranteed that at least one room has light on.

Output

If there is no desired sequence of actions, print "NO" (without the quotes). Otherwise, print "YES" (without the quotes) and the description of the required sequence of actions as a string. Note that you do not have to minimize the length of the sequence of actions but you shouldn't use more than 3·106 actions.

Examples

Input

3 1 1
1 0 0
0 1 0
1 0 0


Output

YES
D1R2L2D2UU2


Input

3 1 1
1 0 0
0 1 0
0 0 1


Output

NO

Solution (in JAVA):

Solution:


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.util.TreeSet;

public class Neatness {
	static int N;
	static int sr;
	static int sc;

	static int[][] edges;
	static int[] edgeSize;
	static boolean[][] board;
	
	static int R = 0;
	static int C = 1;
	static int NUM_INIT_ON = 0;
	static PrintWriter out;
	
	// indices of ons
	static TreeSet<Integer>[] rowOns;
	static TreeSet<Integer>[] colOns;
	
	static int UNTOUCHED = 0;
	static int EXPLORING = 1;
	static int EXPLORED = 2;
	static int[][] visit;
	static StringBuilder sb = new StringBuilder();
	
	// how many on-lights are reached in turn on phase
	static int countReached = 0;
	public static void main(String[] args) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		out = new PrintWriter(System.out);
		
		StringTokenizer tk = new StringTokenizer(in.readLine());
		N = Integer.parseInt(tk.nextToken());
		sr = Integer.parseInt(tk.nextToken()) - 1;
		sc = Integer.parseInt(tk.nextToken()) - 1;
		
		board = new boolean[N][N];
		edgeSize = new int[N*N];
		edges = new int[N*N][4];
		rowOns = new TreeSet[N];
		colOns = new TreeSet[N];
		visit = new int[N][N];
		for(int i=0;i<N;i++){
			rowOns[i] = new TreeSet();
			colOns[i] = new TreeSet();
		}
		
		for(int r=0;r<N;r++) {
			tk = new StringTokenizer(in.readLine());
			for(int c=0;c<N;c++) {
				board[r][c] = Integer.parseInt(tk.nextToken()) == 1;
				if(board[r][c]){
					NUM_INIT_ON++;
					rowOns[r].add(c);
					colOns[c].add(r);
				}
			}	
		}
		
		turnOn(sr,sc);
		if(countReached != NUM_INIT_ON) {
			System.out.println("NO");
			return;
		}
		
		out.println("YES");
		out.print(sb);
		sb = new StringBuilder();
		turnOff(sr,sc);
		
		out.println(sb);
		out.close();
	}
	
	static int VISITED = 4;
	static void turnOff(int r, int c){
		visit[r][c] = VISITED;
		for(int i = 0; i < edgeSize[id(r,c)]; i++){
			int vout = edges[id(r,c)][i];
			int nc = vout % N;
			int nr = vout / N;
			int dr = nr - r;
			int dc = nc - c;
			int dirId = -1;
			if(dr == 0){
				if(dc>0){
					dirId = 0;
				}else{
					dirId = 3;
				}
			}else{
				if(dr > 0){
					dirId = 1;
				}else{
					dirId = 2;
				}
			}
			
			if(visit[nr][nc] != VISITED){
				sb.append(DIR_NAMES[dirId]);
				turnOff(nr,nc);
				sb.append(DIR_REV_NAMES[dirId]);
			}
		}
		sb.append(OFF);
	}
	
	
	static char ON = '1';
	static char OFF = '2';
	static int[][] DIRS = {{0,1},{1,0},{-1,0},{0,-1}};
	static char[] DIR_NAMES = {'R','D','U','L'};
	static char[] DIR_REV_NAMES = {'L','U','D','R'};
	// pre: unexplored, post = explored + return back here
	static void turnOn(int r, int c) {
		visit[r][c] = EXPLORING;
		if(board[r][c]) {
			countReached++;
		} else {
			sb.append(ON);
			board[r][c] = true;
			rowOns[r].add(c);
			colOns[c].add(r);
		}
		
		for(int dirId = 0; dirId < 4; dirId++) {
			int[] dir = DIRS[dirId];
			int nr = r + dir[R];
			int nc = c + dir[C];
			if(nr >= 0 && nr < N && nc >= 0 && nc < N && visit[nr][nc] == UNTOUCHED){
				boolean seeLight = false;
				if(dir[R] != 0){
					if(dir[R] < 0){
						seeLight = colOns[c].floor(nr) != null;
					}else{
						seeLight = colOns[c].ceiling(nr) != null;
					}
				}else{
					if(dir[C] < 0){
						seeLight = rowOns[r].floor(nc) != null;
					}else{
						seeLight = rowOns[r].ceiling(nc) != null;
					}
				}
				if(seeLight) {
					sb.append(DIR_NAMES[dirId]);
					int prevNode = id(r,c);
					int newNode = id(nr,nc);
					edges[prevNode][edgeSize[prevNode]++] = newNode; 
					edges[newNode][edgeSize[newNode]++] = prevNode; 
					turnOn(nr,nc);
					sb.append(DIR_REV_NAMES[dirId]);
				}
			}
		}
		
		visit[r][c] = EXPLORED;
	}
	
	static int id(int r, int c){
		return r*N + c;
	}
	
	static void p(){
		for(int r=0;r<N;r++){
			for(int c=0;c<N;c++){
				System.out.print(board[r][c]?1:0);
			}	
			System.out.println();
		}
	}
}