#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
vector<char> ans;
vector<int> up[205], down[205];
int n, m, k, tot, sx[205], sy[205], fx[205], fy[205];
int main() {
  n = read();
  m = read();
  k = read();
  for (int i = 1; i <= k; ++i) {
    sx[i] = read();
    sy[i] = read();
  }
  for (int i = 1; i <= k; ++i) {
    fx[i] = read();
    fy[i] = read();
  }
  cout << n * m + n + m - 3 << endl;
  for (int i = 1; i < m; ++i) putchar('L');
  for (int i = 1; i < n; ++i) putchar('U');
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j < m; ++j)
      if (i % 2)
        putchar('R');
      else
        putchar('L');
    if (i != n) putchar('D');
  }
}
