#include <stdio.h>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
	char s[100];
    scanf("%s", s);
    int i = 0;
  	BOOL result = YES;
    while (s[i] != '\0') {
        if ( i % 2 == 1 ) {
            if (s[i] != 'R' && s[i] != 'U' && s[i] != 'D') {
                result = NO;
              	break;
            }
        } else {
            if (s[i] != 'L' && s[i] != 'U' && s[i] != 'D') {
                result = NO;
              	break;
            }
        }
        i++;
    }
  	printf("%s", result ? "Yes" : "No");
  	return 0;
}
