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:
import sys
import math
s = sys.stdin.readline()
t = sys.stdin.readline()

sx = int(ord(s[0]) - 97)
sy = 8 - int(s[1])
tx = int(ord(t[0]) - 97)
ty = 8 - int(t[1])

px = [0] * 64
py = [0] * 64


grid = [    [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1], 
                [-1,  -1,  -1,  -1,  -1,  -1,  -1, -1]]


#----------------------------------------
dx = [1,  1,  1,  0,  0,  -1,  -1,  -1]
dy = [1,  0,  -1,  1,  -1,  1,  0,  -1]

d = 0
grid[sy][sx] = 0

while True:
    for y in range(8):
        for x in range(8):
            if(grid[y][x] == d):
                for k in range(8):
                    iy = y + dy[k]
                    ix = x + dx[k]
                    if(iy >= 0 and iy < 8 and ix >= 0 and ix < 8 and grid[iy][ix] == -1):
                        grid[iy][ix] = d + 1
    d += 1
    if(grid[ty][tx] != -1):
        break
 
#print("\n") 
#for i in range(8):
#    print(grid[i])
                
ln = grid[ty][tx]
x = tx
y = ty
d = ln
while(d > 0):
    px[d] = x
    py[d] = y
    d -= 1
    
    for k in range(8):
        iy = y + dy[k]
        ix = x + dx[k]
        if(iy >= 0 and iy < 8 and ix >= 0 and ix < 8 and grid[iy][ix] == d):
            x = x + dx[k]
            y = y + dy[k]
            break
            
px[0] = sx
py[0] = sy

print(ln)
#print(px)
#print(py)

for i in range(ln):
    x = px[i] - px[i + 1]
    y = py[i] - py[i + 1]
    
    res = ""
    if(x < 0):
        res += 'R'
    elif(x > 0):
        res += 'L'
        
    if(y < 0):
        res += 'D'
    elif(y > 0):
        res += 'U'
    print(res)