Problem: The king is left alone on the chessboard. In spite of this loneliness, he doesn't lose heart, because he has business of national importance. For example, he has to pay an official visit to square t. As the king is not in habit of wasting his time, he wants to get from his current position s to square t in the least number of moves. Help him to do this.

<image>

In one move the king can get to the square that has a common side or a common vertex with the square the king is currently in (generally there are 8 different squares he can move to).

Input

The first line contains the chessboard coordinates of square s, the second line — of square t.

Chessboard coordinates consist of two characters, the first one is a lowercase Latin letter (from a to h), the second one is a digit from 1 to 8.

Output

In the first line print n — minimum number of the king's moves. Then in n lines print the moves themselves. Each move is described with one of the 8: L, R, U, D, LU, LD, RU or RD. 

L, R, U, D stand respectively for moves left, right, up and down (according to the picture), and 2-letter combinations stand for diagonal moves. If the answer is not unique, print any of them. 

Examples

Input

a8
h1


Output

7
RD
RD
RD
RD
RD
RD
RD

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
typedef struct point {
  int x, y;
} myp;
typedef struct parent {
  char x, y;
} parent;
int dis[9][9];
int vis[9][9];
int main() {
  int yp[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
  int xp[8] = {1, 1, 1, 0, -1, -1, -1, 0};
  char s[8][2];
  strcpy(s[0], "LU");
  strcpy(s[1], "Uy");
  strcpy(s[2], "RU");
  strcpy(s[3], "Ry");
  strcpy(s[4], "RD");
  strcpy(s[5], "Dy");
  strcpy(s[6], "LD");
  strcpy(s[7], "Ly");
  for (int i = 0; i <= 8; i++) {
    for (int j = 0; j <= 8; j++) {
      dis[i][j] = 100;
      vis[i][j] = 0;
    }
  }
  char c1, c2;
  int r1, r2;
  scanf("%c%d", &c1, &r1);
  scanf("%c", &c2);
  scanf("%c%d", &c2, &r2);
  queue<myp> q;
  myp a1, a2, val[9][9];
  a1.x = r1;
  a1.y = c1 - 96;
  q.push(a1);
  dis[a1.x][a1.y] = 0;
  char parx[9][9], pary[9][9];
  val[a1.x][a1.y].x = r1;
  val[a1.x][a1.y].y = c1 - 96;
  int k1 = 0;
  while (!q.empty()) {
    a1 = q.front();
    q.pop();
    vis[a1.x][a1.y] = 1;
    for (int k1 = (int)0; k1 < (int)8; k1++) {
      a2.x = a1.x + xp[k1];
      a2.y = a1.y + yp[k1];
      if (a2.x >= 1 && a2.x <= 8 && a2.y >= 1 && a2.y <= 8 &&
          vis[a2.x][a2.y] == 0) {
        if (dis[a2.x][a2.y] == 0 || dis[a2.x][a2.y] > dis[a1.x][a1.y] + 1) {
          dis[a2.x][a2.y] = dis[a1.x][a1.y] + 1;
          q.push(a2);
          parx[a2.x][a2.y] = s[k1][0];
          pary[a2.x][a2.y] = s[k1][1];
          val[a2.x][a2.y] = a1;
        }
      }
    }
  }
  printf("%d\n", dis[r2][c2 - 96]);
  int i, x = r2;
  int y = c2 - 96, k = 0;
  char xstr[18];
  char ystr[18];
  while (!(x == val[x][y].x && y == val[x][y].y)) {
    xstr[k] = parx[x][y];
    ystr[k] = pary[x][y];
    k++;
    int t1 = val[x][y].x;
    int t2 = val[x][y].y;
    x = t1;
    y = t2;
  }
  k--;
  for (i = k; i >= 0; i--) {
    printf("%c", xstr[i]);
    if (ystr[i] != 'y') printf("%c", ystr[i]);
    printf("\n");
    ;
  }
  return 0;
}