taps = gets.chomp.split('')

odds = 'RUD'.split('')
evens = 'LUD'.split('')

res = true

taps.each_with_index do |i, idx|
    cnt = idx + 1
    if cnt.even?
        res = false unless evens.include?(i)
    else
        res = false unless odds.include?(i)
    end
end


puts res ? "Yes" : "No"