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

Solution:
# -*- coding: utf-8 -*-
"""
Created on Mon Mar  2 00:41:14 2020

@author: akprasad

3A. Shortest path of the king
time limit per test:    1 second
memory limit per test:  64 megabytes
input:      standard input
output:     standard output

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.


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
and 2-letter combinations stand for diagonal moves.
If the answer is not unique, print any of them.

8
7
6
5
4
3
2
1
  A B C D E F G H


Examples

input
a8
h1

output
7
RD
RD
RD
RD
RD
RD
RD
"""

if __name__ == '__main__':
    s, t = input(), input()
    
    row_diff = int(s[1]) - int(t[1])
    row_move = ''
    if row_diff > 0:
        row_move = 'D'
    elif row_diff < 0:
        row_move = 'U'
    
    col_diff = ord(s[0]) - ord(t[0])
    col_move = ''
    if col_diff > 0:
        col_move = 'L'
    elif col_diff < 0:
        col_move = 'R'
    
    # first print the total number of moves required
    print(max(abs(row_diff), abs(col_diff)))
    
    i, j = 0, 0
    while i < abs(row_diff) and j < abs(col_diff):
        print(col_move + row_move)
        i += 1
        j += 1
    
    while i < abs(row_diff):
        print(row_move)
        i += 1
    
    while j < abs(col_diff):
        print(col_move)
        j += 1