#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int inf = 1e9 + 5;
const int nax = 2e5 + 5;
void min_self(int& a, int b) { a = min(a, b); }
void max_self(int& a, int b) { a = max(a, b); }
void add_self(int& a, int b) { a = (a + b) % mod; }
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  int kk;
  for (int i = 0; i < 2 * k; i++) {
    for (int j = 0; j < 2; j++) cin >> kk;
  }
  cout << n * m + m + n - 2 << endl;
  for (int i = 0; i < m - 1; i++) cout << "R";
  for (int i = 0; i < n - 1; i++) cout << "D";
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (int j = 0; j < m - 1; j++) {
        cout << "L";
      }
    } else {
      for (int j = 0; j < m - 1; j++) {
        cout << "R";
      }
    }
    cout << "U";
  }
}
