s = gets.chomp

result = true
s.chars.each_with_index do |c, i|
    i += 1
    if c == 'U' || c == 'D'
        next
    end

    if i.odd?
        next if c == 'R'
    else
        next if c == 'L'
    end

    result = false
end

puts "#{result ? 'Yes' : "No"}"