N = int(input()) S = 'DR' for i in range(2 * N): print(S[i % 2]) v = int(input()) if v != 0: exit()