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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
void _fill_int(int* p, int val, int rep) {
  int i;
  for (i = 0; i < rep; i++) p[i] = val;
}
signed long long GETi() {
  signed long long i;
  scanf("%lld", &i);
  return i;
}
int N, X, Y;
int mat[501][501];
int vis[501][501];
int LM[501], RM[501], TM[501], BM[501];
char str[3000002];
char* P;
void dfs(int cy, int cx, int pre, bool on) {
  char move[16] = "*LR*U***D";
  int i;
  if (on && (mat[cy][cx] & 1) == 0) *P++ = '1';
  if ((vis[cy][cx] & 1) && (pre != 1)) *P++ = 'L', dfs(cy, cx - 1, 2, on);
  if ((vis[cy][cx] & 2) && (pre != 2)) *P++ = 'R', dfs(cy, cx + 1, 1, on);
  if ((vis[cy][cx] & 4) && (pre != 4)) *P++ = 'U', dfs(cy - 1, cx, 8, on);
  if ((vis[cy][cx] & 8) && (pre != 8)) *P++ = 'D', dfs(cy + 1, cx, 4, on);
  if (!on) *P++ = '2';
  if (pre != 0) *P++ = move[pre];
}
void solve() {
  int f, i, j, k, l, x, y;
  cin >> N >> Y >> X;
  X--;
  Y--;
  for (y = 0; y < N; y++)
    for (x = 0; x < N; x++) cin >> mat[y][x];
  for (y = 0; y < N; y++) LM[y] = TM[y] = N, RM[y] = BM[y] = -1;
  l = 0;
  mat[Y][X] |= 2;
  for (y = 0; y < N; y++)
    for (x = 0; x < N; x++)
      if (mat[y][x]) {
        l++;
        if (LM[y] > x) LM[y] = x;
        RM[y] = x;
        if (TM[x] > y) TM[x] = y;
        BM[x] = y;
      }
  if (l == 1 && (mat[Y][X] & 1)) return (void)printf("YES\n2\n");
  P = str;
  stack<int> Q;
  Q.push(Y * 1000 + X);
  while (!Q.empty()) {
    int k = Q.top();
    Q.pop();
    int cx = k % 1000, cy = k / 1000;
    TM[cx] = min(TM[cx], cy);
    BM[cx] = max(BM[cx], cy);
    LM[cy] = min(LM[cy], cx);
    RM[cy] = max(RM[cy], cx);
    for (i = 0; i < 4; i++) {
      int dx[] = {0, 0, 1, -1}, dy[] = {1, -1, 0, 0};
      int tx = cx + dx[i], ty = cy + dy[i];
      if (tx < 0 || ty < 0 || tx >= N || ty >= N) continue;
      if (dy[i] > 0 && BM[cx] < ty) continue;
      if (dy[i] < 0 && TM[cx] > ty) continue;
      if (dx[i] > 0 && RM[cy] < tx) continue;
      if (dx[i] < 0 && LM[cy] > tx) continue;
      if (mat[ty][tx] & 2) continue;
      mat[ty][tx] |= 2;
      if (dx[i] < 0) vis[cy][cx] |= 1, vis[ty][tx] |= 2;
      if (dx[i] > 0) vis[cy][cx] |= 2, vis[ty][tx] |= 1;
      if (dy[i] < 0) vis[cy][cx] |= 4, vis[ty][tx] |= 8;
      if (dy[i] > 0) vis[cy][cx] |= 8, vis[ty][tx] |= 4;
      Q.push(ty * 1000 + tx);
    }
  }
  for (y = 0; y < N; y++)
    for (x = 0; x < N; x++)
      if (mat[y][x] == 1) return (void)printf("NO\n");
  dfs(Y, X, 0, true);
  dfs(Y, X, 0, false);
  (void)printf("YES\n%s\n", str);
}
int main(int argc, char** argv) {
  if (argc > 1) freopen(argv[1], "r", stdin);
  solve();
  return 0;
}