s = gets.chomp.chars

c = s.size-1

odd = []
even = []

(0..c).each do |i|
  if i%2 == 0
    odd.push(s[i])
  else
    even.push(s[i])
  end
end

if odd.include?( "R"|| "U" || "D" ) &&even.include?( "L" || "U" || "D" )
  puts "Yes" 
else 
  puts "No"
end