# s = 'RUDLUDR'
s = gets.chomp
s = s.split('')
odd = s.each_slice(2).map(&:first)
even = s.each_slice(2).map { |v| v[1] if v.length == 2 }
even.compact!

j1 = odd.all? {|w| ['R', 'U', 'D'].include?(w) }
j2 = even.all? {|w| ['L', 'U', 'D'].include?(w) }

if j1 && j2
  print 'Yes'
else
  print 'No'
end
