S = gets.strip.to_s
m = S.size
if m%2==0
  i = 0
  cnt = 0
  while i < m/2 do
    if S[2*i]=="R" || S[2*i]=="U" || S[2*i]=="D"
      if S[2*i+1]=="L" || S[2*i+1]=="U" || S[2*i+1]=="D"
        cnt += 1
      end
    end
    i += 1
  end
  if cnt == m/2
    puts "Yes"
  else
    puts "No"
  end
else
  i = 0
  cnt = 0
  if m != 1
    while i < (m-1)/2 do
      if S[2*i]=="R" || S[2*i]=="U" || S[2*i]=="D"
        if S[2*i+1]=="L" || S[2*i+1]=="U" || S[2*i+1]=="D"
          cnt += 1
        end
      end
      i += 1
    end
  end
  if S[m-1]=="R" || S[m-1]=="U" || S[m-1]=="D"
    cnt += 1
  end
  if cnt == (m+1)/2
    puts "Yes"
  else
    puts "No"
  end
end