s = gets.chomp.split("")
arr = 1.upto(s.count)
i_odd = []
i_even = []
o = []
e = []

arr.each { |i|
  if i.odd?
      i_odd << i
  end
 }

i_odd.each { |i|
    o << s[i-1]
}

arr.each { |i|
  if i.even?
      i_even  << i
  end
 }

i_even.each { |i|
    e << s[i-1]
}

o = o.uniq
e = e.uniq

if o.include?("L") ||  e.include?("R")
  puts "No"
else
  puts "Yes"
end
