s = gets.chomp.split('')
s.each.with_index(1) do |char, i|
  if (i.odd?)
    if (char == 'L')
      puts 'No'
      exit
    end
  else
    if (char == 'R')
      puts 'No'
      exit
    end
  end
end
puts 'Yes'
