s = gets.chomp

odd = s.chars.select.with_index(1) { |_, i| i.odd? }
even = s.chars.select.with_index(1) { |_, i| i.even? }

if odd.include?('L') || even.include?('R')
  puts 'No'
else
  puts 'Yes'
end
