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:
adj = [    
    [1, 8, 9], #0
    [0, 8, 9, 10, 2], #1
    [1, 9, 10, 11, 3], #2
    [2, 10, 11, 12, 4], #3
    [3, 11, 12, 13, 5], #4
    [4, 12, 13, 14, 6], #5
    [5, 13, 14, 15, 7], #6
    [6, 14, 15], #7
    [0, 1, 9, 17, 16] , #8
    [0, 1, 2, 10, 18, 17, 16, 8] , #9
    [1, 2, 3, 11, 19, 18, 17, 9] , #10
    [2, 3, 4, 12, 20, 19, 18, 10] , #11
    [3, 4, 5, 13, 21, 20, 19, 11] , #12
    [4, 5, 6, 14, 22, 21, 20, 12] , #13
    [5, 6, 7, 15, 23, 22, 21, 13] , #14
    [7, 6, 14, 22, 23] , #15
    [8, 9, 17, 25, 24] , #16
    [8, 9, 10, 18, 26, 25, 24, 16] , #17
    [9, 10, 11, 19, 27, 26, 25, 17] , #18
    [10, 11, 12, 20, 28, 27, 26, 18] , #19
    [11, 12, 13, 21, 29, 28, 27, 19] , #20
    [12, 13, 14, 22, 30, 29, 28, 20] , #21
    [13, 14, 15, 23, 31, 30, 29, 21] , #22
    [15, 14, 22, 30, 31] , #23
    [16, 17, 25, 33, 32] , #24
    [16, 17, 18, 26, 34, 33, 32, 24] , #25
    [17, 18, 19, 27, 35, 34, 33, 25] , #26
    [18, 19, 20, 28, 36, 35, 34, 26] , #27
    [19, 20, 21, 29, 37, 36, 35, 27] , #28
    [20, 21, 22, 30, 38, 37, 36, 28] , #29
    [21, 22, 23, 31, 39, 38, 37, 29] , #30
    [23, 22, 30, 38, 39] , #31
    [24, 25, 33, 41, 40] , #32
    [24, 25, 26, 34, 42, 41, 40, 32] , #33
    [25, 26, 27, 35, 43, 42, 41, 33] , #34
    [26, 27, 28, 36, 44, 43, 42, 34] , #35
    [27, 28, 29, 37, 45, 44, 43, 35] , #36
    [28, 29, 30, 38, 46, 45, 44, 36] , #37
    [29, 30, 31, 39, 47, 46, 45, 37] , #38
    [31, 30, 38, 46, 47] , #39
    [32, 33, 41, 49, 48] , #40
    [32, 33, 34, 42, 50, 49, 48, 40] , #41
    [33, 34, 35, 43, 51, 50, 49, 41] , #42
    [34, 35, 36, 44, 52, 51, 50, 42] , #43
    [35, 36, 37, 45, 53, 52, 51, 43] , #44
    [36, 37, 38, 46, 54, 53, 52, 44] , #45
    [37, 38, 39, 47, 55, 54, 53, 45] , #46
    [39, 38, 46, 54, 55] , #47
    [40, 41, 49, 57, 56] , #48
    [40, 41, 42, 50, 58, 57, 56, 48] , #49
    [41, 42, 43, 51, 59, 58, 57, 49] , #50
    [42, 43, 44, 52, 60, 59, 58, 50] , #51
    [43, 44, 45, 53, 61, 60, 59, 51] , #52
    [44, 45, 46, 54, 62, 61, 60, 52] , #53
    [45, 46, 47, 55, 63, 62, 61, 53] , #54
    [47, 46, 54, 62, 63] , #55
    [48, 49, 57], #56
    [56, 48, 49, 50, 58], #57
    [57, 49, 50, 51, 59], #58
    [58, 50, 51, 52, 60], #59
    [59, 51, 52, 53, 61], #60
    [60, 52, 53, 54, 62], #61
    [61, 53, 54, 55, 63], #62
    [55, 54, 62] #63
]

G = {}

for i in range(len(adj)):
    temp = {}
    for j in adj[i]:
        temp[j]=1
    G[i] = temp

board = [
    [56, 57, 58, 59, 60, 61, 62, 63, ],
    [48, 49, 50, 51, 52, 53, 54, 55, ],
    [40, 41, 42, 43, 44, 45, 46, 47, ],
    [32, 33, 34, 35, 36, 37, 38, 39, ],
    [24, 25, 26, 27, 28, 29, 30, 31, ],
    [16, 17, 18, 19, 20, 21, 22, 23, ],
    [8, 9, 10, 11, 12, 13, 14, 15, ],
    [0, 1, 2, 3, 4, 5, 6, 7, ],
]

w = {'a':0,'b':1,'c':2,'d':3,'e':4,'f':5,'g':6,'h':7}

def coord_to_word(l):
    return board[int(l[1])-1][w[l[0]]]

def command(a,b):
    if(a-9==b):
        return 'LU'
    elif(a-8==b):
        return 'U'
    elif(a-7==b):
        return 'RU'
    elif(a+1==b):
        return 'R'
    elif(a+9==b):
        return 'RD'
    elif(a+8==b):
        return 'D'
    elif(a+7==b):
        return 'LD'
    elif(a-1==b):
        return 'L'

N = len(G) 

t = []
p = {}
b = {}
v = None
e = None 
s = []

def dijkstra(v, p, t, b, e):
    for x in G[v]:
        xm = p[v] + G[v][x]
                            
        if not x in p:
            p[x] = xm
            b[x] = v
        elif not x in t:
            if p[x] > xm:
                p[x] = xm
                b[x] = v
            
    t.append(v)             
    
    if N <= len(t):        
        
        s.insert(0, e)
        
        while True:
            if b[e] == -1:
                break
            e = b[e]
            s.insert(0, e)
                 
        return  s         
    
    for d in p:
        if d not in t:
            dm = p[d] 
            break
    
    for y in p:
        if p[y] < dm and not y in t: 
            dm = p[y]
            d = y 
    
    v = d
    dijkstra(v, p, t, b, e)

def start_v(start, end):
    v = start
    e = end
    p[v] = 0
    b[v] = -1
    return v, p, b, e

A=coord_to_word(input())
B=coord_to_word(input())

v, p, b, e = start_v(A, B)
dijkstra(v, p, t, b, e)

print(len(s)-1)
for i in range(0,len(s)-1):
    print(command(s[i],s[i+1]))