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;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
const int N = 2e5 + 5;
int di[] = {-1, -1, -1, 0, 1, 1, 1, 0};
int dj[] = {-1, 0, 1, 1, 1, 0, -1, -1};
string dir[] = {"LD", "L", "LU", "U", "RU", "R", "RD", "D"};
bool valid(int i, int j) { return (i >= 0 && j > 0 && i < 8 && j <= 8); }
string ans[10][10];
pair<int, int> parent[10][10];
bool vis[10][10];
int bfs(int i, int j, int distI, int distJ) {
  queue<pair<int, int>> q;
  q.push({i, j});
  vis[i][j] = true;
  int level = 0;
  while (!q.empty()) {
    int sz = q.size();
    while (sz--) {
      pair<int, int> curr = q.front();
      q.pop();
      if (curr.first == distI && curr.second == distJ) return level;
      for (int k = 0; k < 8; ++k) {
        int u = curr.first + di[k];
        int v = curr.second + dj[k];
        if (valid(u, v) && !vis[u][v]) {
          vis[u][v] = true;
          q.push({u, v});
          parent[u][v] = {curr.first, curr.second};
          ans[u][v] = dir[k];
        }
      }
    }
    level++;
  }
  return -1;
}
int main() {
  fast();
  string s, t;
  cin >> s >> t;
  pair<int, int> dist = {(t[0] - 'a'), (t[1] - '0')};
  pair<int, int> src = {(s[0] - 'a'), (s[1] - '0')};
  vector<string> d;
  cout << bfs(src.first, src.second, dist.first, dist.second) << "\n";
  parent[src.first][src.second] = {-1, -1};
  while (parent[dist.first][dist.second] != make_pair(-1, -1)) {
    d.push_back(ans[dist.first][dist.second]);
    dist = parent[dist.first][dist.second];
  }
  reverse(d.begin(), d.end());
  for (auto &c : d) cout << c << "\n";
}