#include <bits/stdc++.h>
using namespace std;
long long m, n, k, sx[210], sy[210], fx[210], fy[210];
vector<long long> princess[100010];
bool hamin[100010];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m >> k;
  for (int i = 0; i < k; i++) cin >> sx[i] >> sy[i];
  for (int i = 0; i < k; i++) cin >> fx[i] >> fy[i];
  cout << n + m + n * m - 3 << "\n";
  for (int i = 0; i < n - 1; i++) cout << "U";
  for (int i = 0; i < m - 1; i++) cout << "L";
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (long long j = 0; j < m - 1; j++) cout << "R";
    } else
      for (long long j = 0; j < m - 1; j++) cout << "L";
    if (i != n - 1) cout << "D";
  }
}
