#偶数と奇数配列に分ける
#奇数番配列にLが存在するかで条件分岐
#偶数番配列にRが存在するかで条件分岐
S = input()
Odd = S[::2]
Even = S[1::2]
print('Yes' if Odd.count('L') == 0 and Even.count('R') == 0 else 'No') S = input() S input() input Odd = S[::2] Odd S[::2] S ::2 2 Even = S[1::2] Even S[1::2] S 1::2 1 2 print('Yes' if Odd.count('L') == 0 and Even.count('R') == 0 else 'No') print 'Yes' if Odd.count('L') == 0 and Even.count('R') == 0 else 'No' Odd.count('L') == 0 and Even.count('R') == 0 Odd.count('L') == 0 Odd.count('L') Odd.count Odd count 'L' 0 Even.count('R') == 0 Even.count('R') Even.count Even count 'R' 0 'Yes' 'No' Odd = S[::2] S[::2] Odd Even = S[1::2] S[1::2] Even S = input() input() S
#偶数と奇数配列に分ける
#奇数番配列にLが存在するかで条件分岐
#偶数番配列にRが存在するかで条件分岐
S = input()
Odd = S[::2]
Even = S[1::2]
print('Yes' if Odd.count('L') == 0 and Even.count('R') == 0 else 'No')