#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  long long sx[k], sy[k], fx[k], fy[k];
  for (long long i = 0; i < k; i++) cin >> sx[i] >> sy[i];
  for (long long i = 0; i < k; i++) cin >> fx[i] >> fy[i];
  cout << n + m + n * m - 3 << endl;
  for (long long i = 0; i < m - 1; i++) {
    cout << "R";
  }
  for (long long i = 0; i < n - 1; i++) {
    cout << "U";
  }
  for (long long i = 0; i < m; i++) {
    for (long long j = 0; j < n - 1; j++) {
      if (i % 2 == 0) {
        cout << "D";
      } else {
        cout << "U";
      }
    }
    if (i != m - 1) cout << "L";
  }
  cout << endl;
  return 0;
}
