s = input()
# sをリスト化
s = list(s)
# 1文字目から一つ置きに抜き出してリスト化
odd_list = s[0::2]
# 2文字目から一つ置きに抜き出してリスト化
even_list = s[1::2]

if "R" not in even_list and "L" not in odd_list:
    print("Yes")
else:
    print("No") s = input() s input() input s = list(s) s list(s) list s odd_list = s[0::2] odd_list s[0::2] s 0::2 0 2 even_list = s[1::2] even_list s[1::2] s 1::2 1 2 if "R" not in even_list and "L" not in odd_list:
    print("Yes")
else:
    print("No") "R" not in even_list and "L" not in odd_list "R" not in even_list "R" even_list "L" not in odd_list "L" odd_list print("Yes") print "Yes" print("No") print "No" s = list(s) list(s) s odd_list = s[0::2] s[0::2] odd_list s = input() input() s even_list = s[1::2] s[1::2] even_list
s = input()
# sをリスト化
s = list(s)
# 1文字目から一つ置きに抜き出してリスト化
odd_list = s[0::2]
# 2文字目から一つ置きに抜き出してリスト化
even_list = s[1::2]

if "R" not in even_list and "L" not in odd_list:
    print("Yes")
else:
    print("No")