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

Solution:
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;

/**
 * @author vstepanov on 3/29/2017.
 */
public class Main {
    static MM[] sts = new MM[]{
            new MM(-1, 0, "L"),
            new MM(-1, -1, "LU"),
            new MM(-1, 1, "LD"),
            new MM(0, -1, "U"),
            new MM(1, -1, "RU"),
            new MM(1, 0, "R"),
            new MM(1, 1, "RD"),
            new MM(0, 1, "D")};

    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String s = in.next();
            String t = in.next();
            M[][] tb = new M[8][8];
            Queue<M> queue = new LinkedList<>();
            int i = s.charAt(0) - 'a';
            int j = 8 - Character.digit(s.charAt(1), 10);
            int ti = t.charAt(0) - 'a';
            int tj = 8 - Character.digit(t.charAt(1), 10);
            if (i == ti && j == tj) {
                System.out.println(0);
                return;
            }
            M m = new M(i, j, 0, "");
            nb(queue, m, tb);
            while (!queue.isEmpty()) {
                M nm = queue.poll();
                if (nm.i == ti && nm.j == tj) {
                    m = nm;
                    break;
                }
                nb(queue, nm, tb);
            }

            System.out.println(m.pl);
            M[] path = new M[m.pl];
            int mi = m.pl - 1;
            while (true) {
                path[mi--] = m;
                m = tb[m.i][m.j];
                if (m.i == i && m.j == j) break;
            }
            for (int k = 0; k < path.length; k++) {
                System.out.println(path[k].m);
            }
        }
    }

    static void nb(Queue<M> queue, M m, M[][] tb) {
        for (int i = 0; i < sts.length; i++) {
            MM st = sts[i];
            if (st.di + m.i >= 0 && st.di + m.i < 8 && st.dj + m.j >= 0 && st.dj + m.j < 8) {
                M nm = new M(st.di + m.i, st.dj + m.j, m.pl + 1, st.m);
                if (null != tb[nm.i][nm.j]) {
                    continue;
                }
                tb[nm.i][nm.j] = m;
                queue.add(nm);
            }
        }
    }

    static class MM {
        int di,dj;
        String m;

        public MM(int di, int dj, String m) {
            this.di = di;
            this.dj = dj;
            this.m = m;
        }
    }

    static class M {
        int i,j;
        int pl;
        String m;

        public M(int i, int j, int pl, String m) {
            this.i = i;
            this.j = j;
            this.m = m;
            this.pl = pl;
        }
    }
}