#include <bits/stdc++.h>
using namespace std;
const int N = 2e2 + 7;
int n, m, k;
pair<int, int> a[N], b[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m >> k;
  for (int i = 0; i < k; ++i) {
    cin >> a[i].first >> a[i].second;
  }
  for (int i = 0; i < k; ++i) {
    cin >> b[i].first >> b[i].second;
  }
  cout << n - 1 + m - 1 + m * (n - 1) + m - 1 << "\n";
  for (int i = 0; i < n - 1; ++i) {
    cout << "D";
  }
  for (int i = 0; i < m - 1; ++i) {
    cout << "L";
  }
  for (int i = 0; i < m; ++i) {
    for (int j = 0; j < n - 1; ++j) {
      if (i % 2) {
        cout << "D";
      } else {
        cout << "U";
      }
    }
    if (i != m - 1) {
      cout << "R";
    }
  }
  cout << "\n";
  return 0;
}
