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;
int fx[] = {+0, +0, +1, -1, -1, +1, -1, +1};
int fy[] = {-1, +1, +0, +0, +1, +1, -1, -1};
char dir[8][5] = {"D", "U", "R", "L", "LU", "RU", "LD", "RD"};
struct node {
  int x, y;
};
int cost[10][10], parentX[10], parentY[10];
bool visit[10][10];
bool isValid(node n) {
  if (n.x >= 0 && n.x < 8 && n.y >= 0 && n.y < 8)
    return true;
  else
    return false;
}
void bfs(node from, node to) {
  queue<node> q;
  node u, v;
  int i;
  memset(cost, 0, sizeof(cost));
  ;
  memset(visit, false, sizeof(visit));
  ;
  memset(parentX, -1, sizeof(parentX));
  ;
  memset(parentY, -1, sizeof(parentY));
  ;
  visit[from.x][from.y] = true;
  parentX[from.x] = from.x;
  parentY[from.y] = from.y;
  q.push(from);
  while (!q.empty()) {
    u = q.front();
    q.pop();
    for (int i = 0; i < (int)8; i++) {
      v.x = u.x + fx[i];
      v.y = u.y + fy[i];
      if (isValid(v) && !visit[v.x][v.y]) {
        visit[v.x][v.y] = true;
        cost[v.x][v.y] = cost[u.x][u.y] + 1;
        parentX[v.x] = u.x;
        parentY[v.y] = u.y;
        q.push(v);
      }
    }
  }
  printf("%d\n", cost[to.x][to.y]);
}
void printPath(node from, node to) {
  node path[500];
  int i, j, key = 0;
  node diff, temp;
  path[key++] = to;
  while (!(to.x == parentX[to.x] && to.y == parentY[to.y])) {
    temp.x = parentX[to.x];
    temp.y = parentY[to.y];
    path[key++] = temp;
    to.x = parentX[to.x];
    to.y = parentY[to.y];
  }
  reverse(path, path + key);
  for (int i = 0; i < (int)key; i++) {
    if (!i) continue;
    diff.x = path[i].x - path[i - 1].x;
    diff.y = path[i].y - path[i - 1].y;
    for (int j = 0; j < (int)8; j++) {
      if (diff.x == fx[j] && diff.y == fy[j]) {
        puts(dir[j]);
        break;
      }
    }
  }
}
int main() {
  char str1[5], str2[5];
  node from, to;
  while (gets(str1) && gets(str2)) {
    from.x = str1[0] - 'a';
    from.y = str1[1] - '0' - 1;
    to.x = str2[0] - 'a';
    to.y = str2[1] - '0' - 1;
    bfs(from, to);
    printPath(from, to);
  }
  return 0;
}