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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class TestClass {
    public static void main(String[] args){
        new TestClass().resolveExcercise();
    }
    
    public void resolveExcercise(){
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
            String s, t;
            s = br.readLine();
            t = br.readLine();
            
            byte tx,ty,sx,sy;
            sx = (byte)(s.charAt(0)-'a');
            sy = (byte)(s.charAt(1)-'1');
            tx = (byte)(t.charAt(0)-'a');
            ty = (byte)(t.charAt(1)-'1');
            
            List<String> moves = new LinkedList<String>();
            
            byte dx,dy;
            dx = (byte) (tx - sx);
            dy = (byte) (ty - sy);
            
            if(dx == 0){
                if(dy > 0){
                    addN(dy,"U",moves);
                }else if (dy < 0){
                    addN(-dy,"D",moves);
                }
            }else if(dy == 0){
                if(dx > 0){
                    addN(dx,"R",moves);
                }else if (dx < 0){
                    addN(-dx,"L",moves);
                }
            }else {
                String vDir, hDir;
                if(dx > 0){
                    hDir = "R";
                }else{
                    hDir = "L";
                }
                if(dy > 0){
                    vDir = "U";
                }else{
                    vDir = "D";
                }
                
                dx = (byte) Math.abs(dx);
                dy = (byte) Math.abs(dy);
                int nDiag = Math.min(dx,dy);
                addN(nDiag,hDir+vDir,moves);
                int extraSteps = dy-dx;
                if(extraSteps > 0){
                    addN(extraSteps,vDir,moves);                    
                }else if (extraSteps < 0){
                    addN(-extraSteps,hDir,moves);
                }
            }
            printSolution(moves);
            
        } catch (IOException e) {
        }
    }
    
    private void addN(int n, String s, List<String> moves){
        for(int i=0;i<n;i++){
            moves.add(s);
        }
    }
    
    private void printSolution(List<String> l){
        System.out.println(l.size());
        for(String s : l){
            System.out.println(s);  
        }
    }
}