# coding: utf-8
class Case02

  def initialize
  end

  def show
    p self.instance_variables
        .map{ |sym| [sym, self.instance_variable_get(sym)] }
        .to_h
  end
  
  # 実行する
  def execute
    read
    solve
    output
  end

  # 読込
  def read
    @s = gets.chomp
  end

  # 回答
  def solve
    @result = true
    1.upto(@s.length) do |i|
      if (i % 2) == 0 then
        unless @s[i-1] =~ /[LUD]/ then
          @result = false
          break
        end
      else
        unless @s[i-1] =~ /[RUD]/  then
          @result = false
          break
        end
      end
    end
  end
  
  # 出力
  def output
    puts @result ? 'Yes' : 'No'
  end

end

Case02.new.execute if $0 == __FILE__

