#include <bits/stdc++.h>
using namespace std;
long long n, T, a, b, c, d, m, k, cnt;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m >> k;
  vector<char> v;
  for (int i = 0; i < k; i++) cin >> a >> b >> c >> d;
  for (int i = 0; i < m - 1; i++) v.push_back('L');
  for (int i = 0; i < n - 1; i++) v.push_back('U');
  for (int i = 0; i < n; i++) {
    if (!(i % 2)) {
      for (int j = 0; j < m - 1; j++) v.push_back('R');
    } else {
      for (int j = 0; j < m - 1; j++) v.push_back('L');
    }
    if (i != n - 1) v.push_back('D');
  }
  cout << v.size() << endl;
  for (auto it : v) cout << it;
}
