s = input()
bool = True
for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
            bool = False
    else:
        if s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
            bool = False
if bool:
    print('Yes')
else:
    print('No') s = input() s input() input bool = True bool True for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
            bool = False
    else:
        if s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
            bool = False i range(len(s)) range len(s) len s if i % 2 == 0:
        if s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
            bool = False
    else:
        if s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
            bool = False i % 2 == 0 i % 2 i 2 0 if s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
            bool = False
     s[i] != 'R' and s[i] != 'U' and s[i] != 'D' s[i] != 'R' and s[i] != 'U' s[i] != 'R' s[i] s i 'R' s[i] != 'U' s[i] s i 'U' s[i] != 'D' s[i] s i 'D' bool = False bool False if s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
            bool = False s[i] != 'L' and s[i] != 'U' and s[i] != 'D' s[i] != 'L' and s[i] != 'U' s[i] != 'L' s[i] s i 'L' s[i] != 'U' s[i] s i 'U' s[i] != 'D' s[i] s i 'D' bool = False bool False if bool:
    print('Yes')
else:
    print('No') bool print('Yes') print 'Yes' print('No') print 'No' bool = True True bool s = input() input() s bool = False False bool bool = False False bool
s = input()
bool = True
for i in range(len(s)):
    if i % 2 == 0:
        if s[i] != 'R' and s[i] != 'U' and s[i] != 'D':
            bool = False
    else:
        if s[i] != 'L' and s[i] != 'U' and s[i] != 'D':
            bool = False
if bool:
    print('Yes')
else:
    print('No')