import java.util.Scanner;

public class Main { //クラス名はMain
    public static void main(String[] args) {
        //コード
      boolean b1 = true;		//奇数文字、最初真にしないと1文字対応できない
      boolean b2 = true;		//偶数文字、最初真にしないと1文字対応できない
      Scanner sc = new Scanner(System.in);
	  String n = sc.next();
      int mojilen = n.length();
      String[] strArray = n.split("");
      //判定
      loop: for(int i=0;i<mojilen;i++) {
       		if (Math.abs(i+1) % 2 == 0) {
            //偶数文字
              switch (strArray[i]) {
        		case "L":
            	b2 = true;
            	break;
        		case "U":
            	b2 = true;
            	break;
       			case "D":
            	b2 = true;
            	break;
        		default:
           		b2 = false;
                break loop;
              }
        }
        else {
          	//奇数文字
                switch (strArray[i]) {
        		case "R":
            	b1 = true;
            	break;
        		case "U":
            	b1 = true;
            	break;
       			case "D":
            	b1 = true;
            	break;
        		default:
           		b1 = false;
                break loop;
        		}
       }
      }
      if (b1 == true && b2 == true){
       System.out.println("Yes");
      }
      else{
        System.out.println("No");
      }
    }
}
/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