s = gets.chomp.split('')
odd = []
even = []
s.count.times do |i|
  if (i % 2) === 0
    odd << s[i]
  else
    even << s[i]
  end
end

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