#奇数文字目がすべて R, U, D のいずれか。
#偶数文字目がすべて L, U, D のいずれか。

str = gets.chomp.split("")
word = str.count.to_i
even = []
odd = []

for i in 0..word-1
  if i%2 == 0
    even.push(str[i])
  else
    odd.push(str[i])
  end
end

if even.include?("L") || even.include?("U") || even.include?("D") || odd.include?("L") || odd.include?("R") || odd.include?("U") || odd.include?("D")
  puts "No"
else
  puts "Yes"
end