s = gets.chomp

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

even_string = even.select{|i| i == "R"}
odd_string = odd.select{|i| i == "L"}

puts ((even_string.length == 0) && (odd_string.length == 0) ? "No" : "Yes")