# frozen_string_literal: true

s = gets.chomp
cnt = 0
a = s.length
(0 .. s.length - 1).each do |a|
if a % 2 == 0 && (s[a] == 'R' || s[a] == 'U' || s[a] == 'D')
    cnt += 1
elsif a % 2 == 1 && (s[a] == 'L' || s[a] == 'U' || s[a] == 'D')
    cnt += 1
    end
end
ans = cnt == a ? 'Yes' : 'No'
puts ans