S = gets
n = (S.size - 1)
i = 0
batsu = 0
while i < n
  if (i + 1).even? && (S[i] == 'L' || S[i] == 'U' || S[i] == 'D')
  elsif (i + 1).odd? && (S[i] == 'R' || S[i] == 'U' || S[i] == 'D')
  else
    batsu = 1
  end
  i += 1
end
puts 'Yes' if batsu == 0
puts 'No' if batsu == 1
