import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

s = s()

for i in range(len(s)):
    if (i+1) % 2 !=0:
        if s[i] == "R" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()

print("Yes") import sys sys import math math import itertools itertools import bisect bisect from copy import copy from collections import deque,Counter from decimal import Decimal import functools functools def s(): return input() s def k(): return int(input()) k def S(): return input().split() S def I(): return map(int,input().split()) I def X(): return list(input()) X def L(): return list(input().split()) L def l(): return list(map(int,input().split())) l def lcm(a,b): return a*b//math.gcd(a,b) lcm a a b b sys.setrecursionlimit(10 ** 9) sys.setrecursionlimit sys setrecursionlimit 10 ** 9 10 9 mod = 10**9+7 mod 10**9+7 10**9 10 9 7 cnt = 0 cnt 0 ans = 0 ans 0 inf = float("inf") inf float("inf") float "inf" s = s() s s() s for i in range(len(s)):
    if (i+1) % 2 !=0:
        if s[i] == "R" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit() i range(len(s)) range len(s) len s if (i+1) % 2 !=0:
        if s[i] == "R" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit() (i+1) % 2 !=0 (i+1) % 2 i+1 i 1 2 0 if s[i] == "R" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()
     s[i] == "R" or s[i]=="U" or s[i]=="D" s[i] == "R" or 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" print("No") print "No" sys.exit() sys.exit sys exit if s[i]=="L" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit() s[i]=="L" or s[i]=="U" or s[i]=="D" s[i]=="L" or 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" print("No") print "No" sys.exit() sys.exit sys exit print("Yes") print "Yes" def S(): return input().split() def S(): return input().split() S cnt = 0 0 cnt def lcm(a,b): return a*b//math.gcd(a,b) def lcm(a,b): return a*b//math.gcd(a,b) lcm def I(): return map(int,input().split()) def I(): return map(int,input().split()) I s = s() s() s ans = 0 0 ans inf = float("inf") float("inf") inf def k(): return int(input()) def k(): return int(input()) k def s(): return input() def s(): return input() s def L(): return list(input().split()) def L(): return list(input().split()) L def X(): return list(input()) def X(): return list(input()) X def l(): return list(map(int,input().split())) def l(): return list(map(int,input().split())) l mod = 10**9+7 10**9+7 mod
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

s = s()

for i in range(len(s)):
    if (i+1) % 2 !=0:
        if s[i] == "R" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()
    else:
        if s[i]=="L" or s[i]=="U" or s[i]=="D":
            pass
        else:
            print("No")
            sys.exit()

print("Yes")
