#!/usr/bin/env python3
s = input()
o = [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]]
print("YNeos"[sum(o) != 0::2]) s = input() s input() input i == "L" for i in s[::2] for i in s[::2] i s[::2] s ::2 2 for i in s[::2] i == "L" i "L" o = [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]] o [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]] [i == "L" for i in s[::2]] [i == "R" for i in s[1::2]] print("YNeos"[sum(o) != 0::2]) print "YNeos"[sum(o) != 0::2] "YNeos" sum(o) != 0::2 sum(o) != 0 sum(o) sum o 0 2 o = [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]] [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]] o s = input() input() s
#!/usr/bin/env python3
s = input()
o = [i == "L" for i in s[::2]] + [i == "R" for i in s[1::2]]
print("YNeos"[sum(o) != 0::2])
