import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int flag1 = 0;
		int flag2 = 0;
		int count = 0;
		String S = sc.nextLine();
		String[] step = S.split("");
		
		for(int j=0; j<step.length; j++){
			if(j%2 == 0){
				flag1 = stepJugeB(step[j]);
				if(flag1 == 0){
					count++;
				}
			}
			else{
				flag2 = stepJugeA(step[j]);
				if(flag2 == 0){
					count++;
				}
			}
		}
		
		if(count == 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
	public static int stepJugeA(String x){
		int flag = 0;
		if(x.equals("L") || x.equals("U") || x.equals("D")){
			flag = 1;
		}
		else{
			flag = 0;
		}
		return flag;
	}
	public static int stepJugeB(String x){
		int flag = 0;
		if(x.equals("R") || x.equals("U") || x.equals("D")){
			flag = 1;
		}
		else{
			flag = 0;
		}
		return flag;
	}
}
/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