n=int(input()) for i in range(2*n): if i%2==0: print("D",flush=1) else: print("R",flush=1) s=int(input()) if s==1: exit() if i==n+1 and s==0: print("U",flush=1) s=int(input()) print("R",flush=1) s=int(input()) print("R",flush=1) s=int(input()) print("D",flush=1) s=int(input()) while s==0: print("R",flush=1) s=int(input()) exit()