n = int(input()) for i in range(n * 2): if i % 2 == 0: print("D", flush=True) else: print("R", flush=True) if int(input()) != 0: break