S = gets.chomp.split("")
result = "Yes"
S.each_with_index do |e,i|
  if i%2 ==0
    if S[i] == "L"
      result = "No"
      break
    end
  else
    if S[i]=="R"
      result = "No"
    end
  end
end

puts result