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