n = gets.chomp.split("")
for i in 0..n.length-1
  if i % 2 == 0
    if n[i] == "L"
      puts "No"
      exit
    end
  else
    if n[i] == "R"
      puts "No"
      exit
    end
  end
end
puts "Yes"
