T = int(input()) if T < 4: # Handle cases where there's no ghost appearance sample = "DRU" # Valid for T=3; adjust if needed for T=1, 2 print(sample[:T]) else: s = ['R', 'D', 'R', 'D'] remaining = T - 4 patterns = ['RURU', 'LDLD'] pattern_idx = 0 while remaining > 0: current_pattern = patterns[pattern_idx % 2] take = min(remaining, len(current_pattern)) for c in current_pattern[:take]: s.append(c) remaining -= take pattern_idx += 1 print(''.join(s))