def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

s = s()
for i in range(len(s)):
	if i%2 == 0 and s[i] not in ["R","U","D"]:
		print("No")
		exit()
	elif i%2 == 1 and s[i] not in ["L","U","D"]:
		print("No")
		exit()
print("Yes") def i():
	return int(input()) i return int(input()) int(input()) int input() input def i2():
	return map(int,input().split()) i2 return map(int,input().split()) map(int,input().split()) map int input().split() ().split () input split def s():
	return str(input()) s return str(input()) str(input()) str input() input def l():
	return list(input()) l return list(input()) list(input()) list input() input def intl():
	return list(int(k) for k in input().split()) intl return list(int(k) for k in input().split()) list(int(k) for k in input().split()) list int(k) int k s = s() s s() s for i in range(len(s)):
	if i%2 == 0 and s[i] not in ["R","U","D"]:
		print("No")
		exit()
	elif i%2 == 1 and s[i] not in ["L","U","D"]:
		print("No")
		exit() i range(len(s)) range len(s) len s if i%2 == 0 and s[i] not in ["R","U","D"]:
		print("No")
		exit()
	elif i%2 == 1 and s[i] not in ["L","U","D"]:
		print("No")
		exit() i%2 == 0 and s[i] not in ["R","U","D"] i%2 == 0 i%2 i 2 0 s[i] not in ["R","U","D"] s[i] s i ["R","U","D"] "R" "U" "D" print("No") print "No" exit() exit elif i%2 == 1 and s[i] not in ["L","U","D"]:
		print("No")
		exit() i%2 == 1 and s[i] not in ["L","U","D"] i%2 == 1 i%2 i 2 1 s[i] not in ["L","U","D"] s[i] s i ["L","U","D"] "L" "U" "D" print("No") print "No" exit() exit print("Yes") print "Yes" def s():
	return str(input()) def s():
	return str(input()) s def i():
	return int(input()) def i():
	return int(input()) i def l():
	return list(input()) def l():
	return list(input()) l def intl():
	return list(int(k) for k in input().split()) def intl():
	return list(int(k) for k in input().split()) intl def i2():
	return map(int,input().split()) def i2():
	return map(int,input().split()) i2 s = s() s() s
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

s = s()
for i in range(len(s)):
	if i%2 == 0 and s[i] not in ["R","U","D"]:
		print("No")
		exit()
	elif i%2 == 1 and s[i] not in ["L","U","D"]:
		print("No")
		exit()
print("Yes")