Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if S[i] == "R" or "U" or "D":
      continue
   	else:
      print("No")
      exit()
  else:
    if S[i] == "L" or "U" or "D":
      continue
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
    	continue
   	else:
    	print("No")
      	exit()
  else:
  	if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
    	continue
    else:
    	print("No")
      	exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if S[i] == ("R" or "U" or "D"):
    	continue
   	else:
    	print("No")
      	exit()
  else:
  	if S[i] == ("L" or "U" or "D"):
    	continue
    else:
    	print("No")
      	exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if S[i] == ("R" or "U" or "D"):
      continue
   	else:
      print("No")
      exit()
  else:
    if S[i] == ("L" or "U" or "D"):
      continue
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if S[i] == "R" or "U" or "D":
      continue
   	else:
      print("No")
      exit()
  if i % 2 != 0:
    if S[i] == "L" or "U" or "D":
      continue
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if S[i] == "R" or "U" or "D":
      continue
   	else:
      print("No")
      exit()
  else:
    if S[i] == "L" or "U" or "D":
      continue
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if s[i] == "R" or "U" or "D":
      pass
   	else:
      print("No")
      exit()
  else:
    if s[i] == "L" or "U" or "D":
      pass
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if s[i] == "R" or "U" or "D":
      continue
   	else:
      print("No")
      exit()
  else:
    if s[i] == "L" or "U" or "D":
      continue
    else:
      print("No")
      exit()
print("Yes")


Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
total = 0
for i in range(len(S)):
  if i % 2 == 0:
   	if s[i] == "R" or "U" or "D":
      continue
   	else:
      total += 1
  else:
    if s[i] == "L" or "U" or "D":
      continue
    else:
      total += 1
  
if total > 0:
  print("No")
else:  
  print("Yes")

Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")

Buggy python submission (verdict: Runtime Error):
S = list(input())
for i in range(len(S)):
  if i % 2 == 0:
   	if s[i] == "R" or "U" or "D":
      continue
   	else:
      print("No")
      break
  else:
    if s[i] == "L" or "U" or "D":
      continue
    else:
      print("No")
      break
  print("Yes")

Fixed submission:
S = list(input())
for i in range(len(S)):
	if i % 2 == 0:
		if (S[i] == "R") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
	else:
		if (S[i] == "L") or(S[i] ==  "U") or(S[i] ==  "D"):
			continue
		else:
			print("No")
			exit()
print("Yes")