# B - Tap Dance
def main():
    s = input()
    for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
    print('Yes')


if __name__ == '__main__':
    main() def main():
    s = input()
    for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
    print('Yes') main s = input() s input() input for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
     i range(0,len(s)) range 0 len(s) len s if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
     i % 2 == 0 i % 2 i 2 0 if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
         s[i] in ['R','U','D'] s[i] s i ['R','U','D'] 'R' 'U' 'D' continue print('No') print 'No' exit() exit if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
     s[i] in ['L','U','D'] s[i] s i ['L','U','D'] 'L' 'U' 'D' continue print('No') print 'No' exit() exit print('Yes') print 'Yes' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    s = input()
    for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
    print('Yes') def main():
    s = input()
    for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
    print('Yes') main
# B - Tap Dance
def main():
    s = input()
    for i in range(0,len(s)):
        if i % 2 == 0:
            if s[i] in ['R','U','D']:
                continue
            else:
                print('No')
                exit()
        else:
            if s[i] in ['L','U','D']:
                continue
            else:
                print('No')
                exit()
    print('Yes')


if __name__ == '__main__':
    main()