Problem: Takahashi will do a tap dance. The dance is described by a string S where each character is `L`, `R`, `U`, or `D`. These characters indicate the positions on which Takahashi should step. He will follow these instructions one by one in order, starting with the first character.  S is said to be _easily playable_ if and only if it satisfies both of the following conditions:    * Every character in an odd position (1-st, 3-rd, 5-th, \ldots) is `R`, `U`, or `D`.   * Every character in an even position (2-nd, 4-th, 6-th, \ldots) is `L`, `U`, or `D`.  Your task is to print `Yes` if S is easily playable, and `No` otherwise.

Submission attempts (in order):
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")


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")


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")


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")


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")


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")


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")


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")

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")

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")


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")


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")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted