N = int(input()) d = "R" while True: print(d) v = int(input()) if v==1:break if d=="R": d = "D" else: d = "R"