def main():
    s = input()
    odds = ("R", "U", "D")
    even = ("L", "U", "D")
    ans = True
    for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

    print("Yes" if ans == True else "No")


main() def main():
    s = input()
    odds = ("R", "U", "D")
    even = ("L", "U", "D")
    ans = True
    for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

    print("Yes" if ans == True else "No") main s = input() s input() input odds = ("R", "U", "D") odds ("R", "U", "D") "R" "U" "D" even = ("L", "U", "D") even ("L", "U", "D") "L" "U" "D" ans = True ans True for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

     index i enumerate(s, 1) enumerate s 1 if index % 2 == 0 and not i in even:
            ans = False
         index % 2 == 0 and not i in even index % 2 == 0 index % 2 index 2 0 not i in even i in even i even ans = False ans False if index % 2 != 0 and not i in odds:
            ans = False

     index % 2 != 0 and not i in odds index % 2 != 0 index % 2 index 2 0 not i in odds i in odds i odds ans = False ans False print("Yes" if ans == True else "No") print "Yes" if ans == True else "No" ans == True ans True "Yes" "No" main() main def main():
    s = input()
    odds = ("R", "U", "D")
    even = ("L", "U", "D")
    ans = True
    for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

    print("Yes" if ans == True else "No") def main():
    s = input()
    odds = ("R", "U", "D")
    even = ("L", "U", "D")
    ans = True
    for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

    print("Yes" if ans == True else "No") main
def main():
    s = input()
    odds = ("R", "U", "D")
    even = ("L", "U", "D")
    ans = True
    for index, i in enumerate(s, 1):
        if index % 2 == 0 and not i in even:
            ans = False
        if index % 2 != 0 and not i in odds:
            ans = False

    print("Yes" if ans == True else "No")


main()