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.*;
public class Main {

	public static void main(String[] args) {
		Scanner lee=new Scanner(System.in);
		String cad=lee.nextLine();
		String cad2=lee.nextLine();
		String []v=new String[2];
		String []v1=new String[2];
		v[0]=cad.substring(0,1);
		v[1]=cad.substring(1);
		v1[0]=cad2.substring(0,1);
		v1[1]=cad2.substring(1);
		int a,b,a1,b1;
		a=0;
		a1=0;
		b=Integer.parseInt(v[1]);
		b1=Integer.parseInt(v1[1]);
		char comp=v[0].charAt(0);
		char comp2=v1[0].charAt(0);
		switch (comp){
		case 'a':
			a=1;
			break;
		case 'b':
			a=2;
			break;
		case 'c':
			a=3;
			break;
		case 'd':
			a=4;
			break;
		case 'e':
			a=5;
			break;
		case 'f':
			a=6;
			break;
		case 'g':
			a=7;
			break;
		case 'h':
			a=8;
			break;
		}
		switch (comp2){
		case 'a':
			a1=1;
			break;
		case 'b':
			a1=2;
			break;
		case 'c':
			a1=3;
			break;
		case 'd':
			a1=4;
			break;
		case 'e':
			a1=5;
			break;
		case 'f':
			a1=6;
			break;
		case 'g':
			a1=7;
			break;
		case 'h':
			a1=8;
			break;
		}
		int cd=0;
		int pd=0;
		int a5=a;
		int b5=b;
		if(a==a1&&b==b1){
			System.out.println(0);
		}
		else{
			while(pd==0){
				cd++;
				if(a5>a1&&b5>b1){
					a5--;
					b5--;
				}
				else{
					if(a5<a1&&b5<b1){
						a5++;
						b5++;
					}
					else{
						if(a5<a1&&b5==b1){
							a5++;
						}
						else{
							if(a5<a1&&b5>b1){
								a5++;
								b5--;
							}
							else{
								if(a5>a1&&b5<b1){
									a5--;
									b5++;
								}
								else{
									if(a5==a1&&b5<b1){
										b5++;
									}
									else{
										if(a5>a1&&b5==b1){
											a5--;
										}
										else{
											if(a5==a1&&b5>b1){
												b5--;
											}
										}
									}
								}
							}
						}
					}
				}
				if(a5==a1&&b5==b1){
					break;
				}
			}
			System.out.println(cd);
		}
		while(pd==0){
			if(a>a1&&b>b1){
				a--;
				b--;
				System.out.println("LD");
			}
			else{
				if(a<a1&&b<b1){
					a++;
					b++;
					System.out.println("RU");
				}
				else{
					if(a<a1&&b==b1){
						a++;
						System.out.println("R");
					}
					else{
						if(a<a1&&b>b1){
							a++;
							b--;
							System.out.println("RD");
						}
						else{
							if(a>a1&&b<b1){
								a--;
								b++;
								System.out.println("LU");
							}
							else{
								if(a==a1&&b<b1){
									b++;
									System.out.println("U");
								}
								else{
									if(a>a1&&b==b1){
										a--;
										System.out.println("L");
									}
									else{
										if(a==a1&&b>b1){
											b--;
											System.out.println("D");
										}
									}
								}
							}
						}
					}
				}
			}
			if(a==a1&&b==b1){
				break;
			}
		}
	}
}