S = gets.chars
res = 'Yes'
S.each_with_index do |s, i|
  if i.even?
    if s == 'L'
      res = 'No'
      break
    end
  else
    if s == 'R'
      res = 'No'
      break
    end
  end
end
puts res
