
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str  = sc.nextLine();
        String[] astr = str.split(""); //状況に合わせて
        sc.close();
        Boolean flag = true;

        for(int i=0;i<astr.length;i++){
            if(i%2 == 0){
                flag = check1(astr[i]);
            }
            else{
                flag = check2(astr[i]);
            }
            if(flag == false){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
    public static Boolean check1(String a){
        if(a.equals("R")||a.equals("U")||a.equals("D")){
            return true;
        }else{
            return false;
        }
    }

    public static Boolean check2(String b){
        if(b.equals("L")||b.equals("U")||b.equals("D")){
            return true;
        }else{
            return false;
        }
    }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz