N=int(input()) i=0 while True: print("DR"[i%2],flush=True) v=int(input()) if v==1: exit() if v==-1: assert 0==1 i+=1