dance = ['L', 'R', 'U', 'D']

line = gets.split("").map(&:to_s)

# p line

G = line.select.with_index { |_, i| i.even? }.include?('L')
K = line.select.with_index { |_, i| i.odd? }.include?('R')
if G == false && K == false
    puts "Yes"
else
    puts "No"
end