s = gets.chomp.chars
s.each.with_index do |chr,id|
  if id % 2 == 0
    if chr == "L"
      puts "No"
      exit
    end
  else
    if chr == "R"
      puts "No"
      exit
    end
  end
end
puts "Yes"