#include <bits/stdc++.h>
using namespace std;
const long long MOD = 998244353;
const long long MAXN = 2 * 100000 + 100;
bool is_pal(string &s) {
  string b = s;
  reverse((b).begin(), (b).end());
  return s == b;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  for (int(i) = 0; (i) < 4 * k; (i)++) {
    int tmp;
    cin >> tmp;
  }
  if (n == 1 && m == 1) {
    cout << 1 << endl << "U";
    return 0;
  }
  string s;
  for (int(i) = 0; (i) < n - 1; (i)++) s.push_back('D');
  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) {
      s.push_back((i % 2 == 0) ? 'R' : 'L');
    }
    if (i + 1 != n) s.push_back('U');
  }
  cout << s.size() << endl << s;
  return 0;
}
