def readlist(): return list(map(int, input().split())) def readint(): return map(int, input().split()) n = int(input()) op = "DR" turn = 0 while True: print(op[turn % 2], flush=True) turn += 1 res = int(input()) if res != 0: exit()