s = gets.chomp.chars
odd = []
eve = []
s.each_slice(2){|e|eve << e[0]; odd << e[1]}
if eve.compact.all?{|e|e=='R'||e=='U'||e=='D'} && odd.compact.all?{|e|e=='L'||e=='U'||e=='D'}
	puts "Yes"
else
	puts "No"
end
