#include <bits/stdc++.h>
using namespace std;
long long i, j, mod = 1e9 + 7;
long long n, m, t, k;
vector<long long> v;
map<long long, bool> q, w;
int32_t main() {
  cin >> n >> m >> k;
  for (i = 1; i <= k; i++) {
    long long x, y;
    cin >> x >> y;
  }
  for (i = 1; i <= k; i++) {
    long long x, y;
    cin >> x >> y;
  }
  long long ans = n + m + n * m - 1;
  cout << ans << " ";
  for (i = 1; i <= n; i++) {
    cout << "U";
  }
  for (i = 1; i <= m; i++) {
    cout << "L";
  }
  long long x = 1, y = 1;
  ans = m * n - 1;
  while (ans--) {
    if (y % 2 == 1) {
      if (x == n) {
        y++;
        cout << "R";
      } else {
        x++;
        cout << "D";
      }
    } else {
      if (x == 1) {
        y++;
        cout << "R";
      } else {
        x--;
        cout << "U";
      }
    }
  }
}
