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