#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e1 + 7;
int main() {
  ios::sync_with_stdio(false);
  int m, n, k;
  cin >> n >> m >> k;
  while (k--) {
    int x, y;
    cin >> x >> y >> x >> y;
  }
  cout << 2 * m * n << "\n";
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m - 1; j++) {
      if (i % 2) {
        cout << "R";
      } else {
        cout << "L";
      }
    }
    cout << "U";
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m - 1; j++) {
      if (i % 2) {
        cout << "L";
      } else {
        cout << "R";
      }
    }
    cout << "D";
  }
}
