#include <bits/stdc++.h>
using namespace std;
void printVec(vector<int> A);
int A[200][200];
void solve() {
  int n, m, k;
  cin >> n >> m >> k;
  int tmp1, tmp2;
  for (int i = 0; i < 2 * k; ++i) {
    cin >> tmp1 >> tmp2;
  }
  cout << (m * n + m + n - 3) << endl;
  for (int i = 0; i < n - 1; ++i) cout << "U";
  for (int i = 0; i < m - 1; ++i) cout << "R";
  char ch = 'L';
  for (int i = 0; i < n - 1; ++i) {
    for (int i = 0; i < m - 1; ++i) cout << ch;
    cout << "D";
    ch = (ch == 'R') ? 'L' : 'R';
  }
  for (int i = 0; i < m - 1; ++i) cout << ch;
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
void printVec(vector<int> A) {
  for (int i = 0; i < A.size(); ++i) cout << A[i] << " ";
  cout << endl;
}
