#!/bin/bash

OK=1
read S
for I in $(seq 1 ${#S})
do
        if [[ $(( ${I} % 2 )) -eq 1 ]]; then
                if [[ '' == $( echo ${S} | cut -b ${I} | egrep '[RUD]' ) ]]; then
                        OK=0
                        break
                fi
        else
                if [[ '' == $( echo ${S} | cut -b ${I} | egrep '[LUD]' ) ]]; then
                        OK=0
                        break
                fi
        fi
done

if [[ $OK -eq 1 ]]; then
        echo "Yes"
else
        echo "No"
fi
