n = int(input()) for _ in range(n): print("R", flush=True) if input() == "1": break print("D", flush=True) if input() == "1": break