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

kisu = ['R', 'U', 'D']
gusu = ['L', 'U', 'D']
line = gets.split("").map(&:to_s)

K = line.select.with_index { |_, i| i.even? }
G = line.select.with_index { |_, i| i.odd? }

if (K - kisu).count < 1 && (G - gusu).count < 1
    puts "Yes"
else
    puts "No"
end