s = gets
as = s.split("")
i = 1
ans = "Yes"
as.each{ |n|
    if (i % 2 == 0)
      if (n == "R") then ans = "No" end
    else
      if (n == "L") then ans = "No" end
    end
    i += 1
}
puts "#{ans}"