#include using namespace std; const string key = "URDL"; string ans1 = "RLRD"; int ans2[] = {2, 0, 2, 1}; int main () { int N; cin >> N; if (N <= 4) { cout << ans1.substr(0, N) << endl; return 0; } cout << ans1; N -= 4; int a = N / 4, b = N % 4; for (int i = 0; i < a; i ++) { for (int j = 0; j < 4; j ++) { cout << key[(i + ans2[j]) % 4]; } } for (int j = 0; j < b; j ++) { cout << key[(a + ans2[j]) % 4]; } cout << endl; }