def query(d): print(d) if int(input()) == 1: exit() N = int(input()) for _ in range(N): query('D') query('R') assert False