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;
struct pkt {
  int x, y;
};
string odp = "";
int n;
pkt start;
int dx[] = {-1, 0, 1, 0};
int dy[] = {0, 1, 0, -1};
string kier = "URDL";
string kier2 = "DLUR";
void dfs(vector<vector<int> >& a, pkt akt, vector<vector<bool> >& odw,
         vector<int>& minx, vector<int>& maxx, vector<int>& miny,
         vector<int>& maxy) {
  odw[akt.x][akt.y] = true;
  minx[akt.y] = min(minx[akt.y], akt.x);
  maxx[akt.y] = max(maxx[akt.y], akt.x);
  miny[akt.x] = min(miny[akt.x], akt.y);
  maxy[akt.x] = max(maxy[akt.x], akt.y);
  if (a[akt.x][akt.y] == 0) odp += "1";
  for (int i = 0; i < 4; ++i) {
    pkt nast = {akt.x + dx[i], akt.y + dy[i]};
    if (nast.x >= 0 && nast.x < n && nast.y >= 0 && nast.y < n &&
        !odw[nast.x][nast.y]) {
      bool ok = false;
      if (i == 0) {
        if (minx[akt.y] < akt.x) ok = true;
      }
      if (i == 1) {
        if (maxy[akt.x] > akt.y) ok = true;
      }
      if (i == 2) {
        if (maxx[akt.y] > akt.x) ok = true;
      }
      if (i == 3) {
        if (miny[akt.x] < akt.y) ok = true;
      }
      if (ok) {
        odp += kier[i];
        dfs(a, nast, odw, minx, maxx, miny, maxy);
        odp += kier2[i];
      }
    }
  }
}
void bfs(vector<vector<bool> >& G, pkt start, pkt meta) {
  vector<vector<bool> > odw(n, vector<bool>(n, false));
  queue<pkt> Q;
  odw[start.x][start.y] = true;
  Q.push(start);
  vector<vector<char> > popkier(n, vector<char>(n));
  vector<vector<pkt> > poppole(n, vector<pkt>(n));
  popkier[start.x][start.y] = 'X';
  poppole[start.x][start.y] = {-1, -1};
  while (!Q.empty()) {
    pkt akt = Q.front();
    Q.pop();
    for (int i = 0; i < 4; ++i) {
      pkt nowy = {akt.x + dx[i], akt.y + dy[i]};
      if (nowy.x >= 0 & nowy.x < n && nowy.y >= 0 && nowy.y < n &&
          !odw[nowy.x][nowy.y] && G[nowy.x][nowy.y]) {
        odw[nowy.x][nowy.y] = true;
        Q.push(nowy);
        popkier[nowy.x][nowy.y] = kier[i];
        poppole[nowy.x][nowy.y] = akt;
      }
    }
  }
  pkt akt = meta;
  string path = "";
  while (popkier[akt.x][akt.y] != 'X') {
    path += popkier[akt.x][akt.y];
    akt = poppole[akt.x][akt.y];
  }
  reverse(path.begin(), path.end());
  odp += path;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> start.x >> start.y;
  --start.x;
  --start.y;
  vector<vector<int> > a(n, vector<int>(n));
  vector<int> minx(n, n), maxx(n, -1);
  vector<int> miny(n, n), maxy(n, -1);
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      cin >> a[i][j];
      if (a[i][j] == 1) {
        minx[j] = min(minx[j], i);
        maxx[j] = max(maxx[j], i);
        miny[i] = min(miny[i], j);
        maxy[i] = max(maxy[i], j);
      }
    }
  }
  vector<vector<bool> > odw(n, vector<bool>(n, false));
  dfs(a, start, odw, minx, maxx, miny, maxy);
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      if (a[i][j] == 1 && !odw[i][j]) {
        cout << "NO";
        return 0;
      }
    }
  }
  cout << "YES" << endl;
  pkt meta;
  for (int i = 0; i < n; ++i) {
    if (maxx[i] != -1) {
      meta = {maxx[i], i};
      break;
    }
  }
  bfs(odw, start, meta);
  pkt akt = meta;
  while (akt.y < start.y) {
    if (minx[akt.y] >= minx[akt.y + 1]) {
      while (akt.x > minx[akt.y]) {
        odp += "2U";
        --akt.x;
      }
      odp += "2R";
      ++akt.y;
      while (akt.x < maxx[akt.y]) {
        odp += "D";
        ++akt.x;
      }
    } else {
      while (akt.x > minx[akt.y + 1]) {
        odp += "2U";
        --akt.x;
      }
      while (akt.x > minx[akt.y]) {
        odp += "U";
        --akt.x;
      }
      while (akt.x < minx[akt.y + 1]) {
        odp += "2D";
        ++akt.x;
      }
      odp += "2R";
      ++akt.y;
      while (akt.x < maxx[akt.y]) {
        odp += "D";
        ++akt.x;
      }
    }
  }
  while (akt.x > start.x) {
    odp += "U";
    --akt.x;
  }
  for (int i = n - 1; i >= 0; --i) {
    if (maxx[i] != -1) {
      meta = {maxx[i], i};
      break;
    }
  }
  bfs(odw, start, meta);
  akt = meta;
  while (akt.y > start.y) {
    if (minx[akt.y] >= minx[akt.y - 1]) {
      while (akt.x > minx[akt.y]) {
        odp += "2U";
        --akt.x;
      }
      odp += "2L";
      --akt.y;
      while (akt.x < maxx[akt.y]) {
        odp += "D";
        ++akt.x;
      }
    } else {
      while (akt.x > minx[akt.y - 1]) {
        odp += "2U";
        --akt.x;
      }
      while (akt.x > minx[akt.y]) {
        odp += "U";
        --akt.x;
      }
      while (akt.x < minx[akt.y - 1]) {
        odp += "2D";
        ++akt.x;
      }
      odp += "2L";
      --akt.y;
      while (akt.x < maxx[akt.y]) {
        odp += "D";
        ++akt.x;
      }
    }
  }
  while (akt.x > start.x) {
    odp += "2U";
    --akt.x;
  }
  while (akt.x > minx[akt.y]) {
    odp += "U";
    --akt.x;
  }
  while (akt.x < start.x) {
    odp += "2D";
    ++akt.x;
  }
  odp += "2";
  cout << odp;
  return 0;
}