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.*;
import java.util.*;

import static java.lang.Math.*;

public class Problem1022 {
    
    final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE")!=null;
    BufferedReader in;
    PrintWriter out;
    StringTokenizer tok = new StringTokenizer("");
    
    void init() throws FileNotFoundException{
        if (ONLINE_JUDGE){
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        }
        else{
            in = new BufferedReader(new FileReader("input.txt"));
            out = new PrintWriter("output.txt");
        }
    }
    
    String readString() throws IOException{
        while(!tok.hasMoreTokens()){
            tok = new StringTokenizer(in.readLine());
        }
        return tok.nextToken();
    }
    
    int readInt() throws IOException{
        return Integer.parseInt(readString());
    }
    
    long readLong() throws IOException{
        return Long.parseLong(readString());
    }
    
    double readDouble() throws IOException{
        return Double.parseDouble(readString());
    }
    
    public static void main(String[] args){
        new Problem1022().run();
    }
    
    public void run(){
        try{
            long t1 = System.currentTimeMillis();
            init();
            solve();
            out.close();
            long t2 = System.currentTimeMillis();
            System.err.println("Time = "+(t2-t1));
        }catch (Exception e){
            e.printStackTrace(System.err);
            System.exit(-1);
        }
    }
    
    
    void solve() throws IOException{
     String [] st = new String [8];
      for (int i = 0; i < 8; i++)
          st[i]="0";
      int j=0;
      int x = 0, y = 0; //nachalo
      int x2 = 0, y2 = 0; //konec
     String s = readString();
     if (s.charAt(0)=='a') x = 1; 
     if (s.charAt(0)=='b') x = 2; 
     if (s.charAt(0)=='c') x = 3; 
     if (s.charAt(0)=='d') x = 4; 
     if (s.charAt(0)=='e') x = 5; 
     if (s.charAt(0)=='f') x = 6; 
     if (s.charAt(0)=='g') x = 7; 
     if (s.charAt(0)=='h') x = 8; 
     if (s.charAt(1)=='1') y = 1; 
     if (s.charAt(1)=='2') y = 2; 
     if (s.charAt(1)=='3') y = 3; 
     if (s.charAt(1)=='4') y = 4; 
     if (s.charAt(1)=='5') y = 5; 
     if (s.charAt(1)=='6') y = 6; 
     if (s.charAt(1)=='7') y = 7; 
     if (s.charAt(1)=='8') y = 8; 
      s = readString();
     if (s.charAt(0)=='a') x2 = 1; 
     if (s.charAt(0)=='b') x2 = 2; 
     if (s.charAt(0)=='c') x2 = 3; 
     if (s.charAt(0)=='d') x2 = 4; 
     if (s.charAt(0)=='e') x2 = 5; 
     if (s.charAt(0)=='f') x2 = 6; 
     if (s.charAt(0)=='g') x2 = 7; 
     if (s.charAt(0)=='h') x2 = 8; 
     if (s.charAt(1)=='1') y2 = 1; 
     if (s.charAt(1)=='2') y2 = 2; 
     if (s.charAt(1)=='3') y2 = 3; 
     if (s.charAt(1)=='4') y2 = 4; 
     if (s.charAt(1)=='5') y2 = 5; 
     if (s.charAt(1)=='6') y2 = 6; 
     if (s.charAt(1)=='7') y2 = 7; 
     if (s.charAt(1)=='8') y2 = 8; 
     if (x == x2 && y == y2) {out.println(0); return; }
     if (x == x2 )
         { if (y < y2){
            out.println(y2-y); 
           for(int i=0; i<y2-y; i++)
               out.println("U"); 
           return;
         }
         else out.println(y-y2); 
         for(int i=0; i<y-y2; i++)
               out.println("D"); 
         return;
         }
     if (y == y2 )
     { if (x < x2){
        out.println(x2-x); 
       for(int i=0; i<x2-x; i++)
           out.println("R"); 
      return; 
     }
     else out.println(x-x2); 
     for(int i=0; i<x-x2; i++)
           out.println("L"); 
     return;
     }
     if (x < x2 && y < y2) 
     {  while(x < x2 && y < y2) {
           st[j]="RU";
           j++;
           x++;
           y++;
         }
        if (x==x2 && y==y2) s="0";
        else {
        if (x==x2) {
            while(y<y2){
             st[j]="U";
             j++;
             y++;
            }
        }
        if (y==y2) 
        {  while(x<x2){
            st[j]="R";
            j++;
            x++;
           }
        }
        }
     
     }
     if (x < x2 && y > y2) 
     {  while(x < x2 && y > y2) {
           st[j]="RD";
           j++;
           x++;
           y--;
         }
        if (x==x2 && y==y2) s="0";
        else  {
        if (x==x2) {
            while(y>y2){
             st[j]="D";
             j++;
             y--;
            }
        }
        if (y==y2) 
        { while(x<x2){
            st[j]="R";
            j++;
            x++;
          }
        } 
        }
     }
     if (x > x2 && y > y2) 
     {  while(x > x2 && y > y2) {
           st[j]="LD";
           j++;
           x--;
           y--;
         }
        if (x==x2 && y==y2) s="0";
        else {
        if (x==x2) {
            while(y>y2){
             st[j]="D";
             j++;
             y--;
            }
        }
        if (y==y2) 
        {   while(x>x2){
            st[j]="L";
            j++;
            x--;
            }
        }
        }
     }
     if (x > x2 && y < y2) 
     {  while(x > x2 && y < y2) {
           st[j]="LU";
           j++;
           x--;
           y++;
         }
        if (x==x2 && y==y2) s="0"; 
        else{
        if (x==x2) {
            while(y<y2){
             st[j]="U";
             j++;
             y++;
            }
        }
        if (y==y2) 
        {   while(x>x2){
            st[j]="L";
            j++;
            x--;
            }
        }
        }
     } 
     out.println(j);
     
     for (int i =0; i<8; i++)
         if (st[i]!="0") out.println(st[i]); 
                        
     }

     
}