
S=gets.chomp
s_arr=S.split("")
odd = s_arr.each_slice(2).map(&:first)
isOdd=1
odd.each do |ch|
  if(ch!="R"&&ch!="U"&&ch!="D") then
    isOdd=0
    break
  end
end
even = s_arr.each_slice(2).map(&:last)
isEven=1

for i in 0..(even.length-1) do
  if(even[i]!="L"&&even[i]!="U"&&even[i]!="D") then
    if(i!=even.length-1) then
      isEven=0
      break
    end
  end
end
if(isOdd==1&&isEven==1) then
  puts("Yes")
else
  puts("No")
end