#include <bits/stdc++.h>
using namespace std;
long long int max(long long int a, long long int b) { return (a < b) ? b : a; }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, m, k;
  cin >> n >> m >> k;
  long long int ar1[k][2], ar2[k][2];
  for (long long int i = 0; i < k; i++) cin >> ar1[i][0] >> ar1[i][1];
  for (long long int i = 0; i < k; i++) cin >> ar2[i][0] >> ar2[i][1];
  cout << (n - 1) + (m - 1) + n * m << endl;
  for (long long int i = 0; i < n - 1; i++) cout << "U";
  for (long long int i = 0; i < m - 1; i++) cout << "L";
  for (long long int i = 0; i < n; i++) {
    for (long long int j = 0; j < m; j++)
      if (i == 0)
        cout << "R";
      else if (i % 2 == 0) {
        if (j == 0)
          cout << "D";
        else
          cout << "R";
      } else {
        if (j == 0)
          cout << "D";
        else
          cout << "L";
      }
  }
  return 0;
}
