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