#include <bits/stdc++.h>
using namespace std;
int main() {
  int(n), (m), (k);
  scanf("%d %d %d", &(n), &(m), &(k));
  for (int i = 0; i < 2 * k; i++) {
    int(a), (b);
    scanf("%d %d", &(a), &(b));
  }
  string s = "";
  for (int i = 0; i < n - 1; i++) s.push_back('U');
  for (int i = 0; i < m - 1; i++) s.push_back('L');
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m - 1; j++) {
      if (i & 1)
        s.push_back('L');
      else
        s.push_back('R');
    }
    if (i != n - 1) s.push_back('D');
  }
  cout << s.size() << "\n" << s << "\n";
  return 0;
}
