S = input()
odd_ls = ['R', 'U', 'D']
even_ls = ['L', 'U', 'D']
result = True
for i in range(len(S)):
    if i % 2 == 0 and S[i] not in odd_ls:
        result = False
    elif i % 2 == 1 and S[i] not in even_ls:
        result = False
if result:
    print('Yes')
else:
    print('No') S = input() S input() input odd_ls = ['R', 'U', 'D'] odd_ls ['R', 'U', 'D'] 'R' 'U' 'D' even_ls = ['L', 'U', 'D'] even_ls ['L', 'U', 'D'] 'L' 'U' 'D' result = True result True for i in range(len(S)):
    if i % 2 == 0 and S[i] not in odd_ls:
        result = False
    elif i % 2 == 1 and S[i] not in even_ls:
        result = False i range(len(S)) range len(S) len S if i % 2 == 0 and S[i] not in odd_ls:
        result = False
    elif i % 2 == 1 and S[i] not in even_ls:
        result = False i % 2 == 0 and S[i] not in odd_ls i % 2 == 0 i % 2 i 2 0 S[i] not in odd_ls S[i] S i odd_ls result = False result False elif i % 2 == 1 and S[i] not in even_ls:
        result = False i % 2 == 1 and S[i] not in even_ls i % 2 == 1 i % 2 i 2 1 S[i] not in even_ls S[i] S i even_ls result = False result False if result:
    print('Yes')
else:
    print('No') result print('Yes') print 'Yes' print('No') print 'No' odd_ls = ['R', 'U', 'D'] ['R', 'U', 'D'] odd_ls even_ls = ['L', 'U', 'D'] ['L', 'U', 'D'] even_ls result = False False result result = True True result S = input() input() S result = False False result
S = input()
odd_ls = ['R', 'U', 'D']
even_ls = ['L', 'U', 'D']
result = True
for i in range(len(S)):
    if i % 2 == 0 and S[i] not in odd_ls:
        result = False
    elif i % 2 == 1 and S[i] not in even_ls:
        result = False
if result:
    print('Yes')
else:
    print('No')