s_ary = gets.chomp.split("")
odd = s_ary.select.with_index { |_, i| i.even? }
even = s_ary.select.with_index { |_, i| i.odd? }

collect_odd_include_ary = ['R', 'U', 'D']
collect_even_include_ary = ['L', 'U', 'D']

is_odd = odd.all? { |s| collect_odd_include_ary.include?(s) }
is_even = even.all? { |s| collect_even_include_ary.include?(s) }

puts (is_odd && is_even) ? 'Yes' : 'No'