import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()

    def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

    if judge():
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main() import sys sys readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline MOD = 10 ** 9 + 7 MOD 10 ** 9 + 7 10 ** 9 10 9 7 INF = float('INF') INF float('INF') float 'INF' sys.setrecursionlimit(10 ** 5) sys.setrecursionlimit sys setrecursionlimit 10 ** 5 10 5 def main():
    S = input()

    def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

    if judge():
        print("Yes")
    else:
        print("No") main S = input() S input() input def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

     judge for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
         i range(len(S)) range len(S) len S if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
         i % 2 == 0 i % 2 i 2 0 if S[i] == "L":
                    return False
             S[i] == "L" S[i] S i "L" return False False if S[i] == "R":
                    return False
         S[i] == "R" S[i] S i "R" return False False return True True if judge():
        print("Yes")
    else:
        print("No") judge() judge print("Yes") print "Yes" print("No") print "No" if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main MOD = 10 ** 9 + 7 10 ** 9 + 7 MOD INF = float('INF') float('INF') INF def main():
    S = input()

    def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

    if judge():
        print("Yes")
    else:
        print("No") def main():
    S = input()

    def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

    if judge():
        print("Yes")
    else:
        print("No") main readline = sys.stdin.readline sys.stdin.readline readline
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()

    def judge():
        for i in range(len(S)):
            if i % 2 == 0:
                if S[i] == "L":
                    return False
            else:
                if S[i] == "R":
                    return False
        return True

    if judge():
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
