s = gets.chomp.split(//)

s.each_with_index do |c, i|
  if (i+1).odd?
    if c == 'L'
      puts 'No'
      exit
    end
  else
    if c == 'R'
      puts 'No'
      exit
    end
  end
end

puts 'Yes'