s = gets.chomp.split("")
s.length.times do |i|
  if (i+1) % 2 == 0
    if s[i] == "R"
      puts "No"
      exit
    end
  else
    if s[i] == "L"
      puts "No"
      exit
    end
  end
end
puts "Yes"