import numpy as np
s = input()
ns = np.array(list(s))
n1 = ns[::2]
n2 = ns[1::2]
if not 'L' in n1 and not 'R' in n2:
    print('Yes')
else:
    print('No') import numpy as np numpy s = input() s input() input ns = np.array(list(s)) ns np.array(list(s)) np.array np array list(s) list s n1 = ns[::2] n1 ns[::2] ns ::2 2 n2 = ns[1::2] n2 ns[1::2] ns 1::2 1 2 if not 'L' in n1 and not 'R' in n2:
    print('Yes')
else:
    print('No') not 'L' in n1 and not 'R' in n2 not 'L' in n1 'L' in n1 'L' n1 not 'R' in n2 'R' in n2 'R' n2 print('Yes') print 'Yes' print('No') print 'No' n2 = ns[1::2] ns[1::2] n2 s = input() input() s n1 = ns[::2] ns[::2] n1 ns = np.array(list(s)) np.array(list(s)) ns
import numpy as np
s = input()
ns = np.array(list(s))
n1 = ns[::2]
n2 = ns[1::2]
if not 'L' in n1 and not 'R' in n2:
    print('Yes')
else:
    print('No')