from itertools import cycle def query(d: str) -> int: print(d) res = int(input()) return res N = int(input()) for d in cycle(['D', 'R']): res = query(d) match res: case 1 | -1: break