n=int(input()) for _ in range(n): print("R") v=int(input()) if v==1 or v==-1: exit() print("D") v = int(input()) if v == 1 or v == -1: exit()