#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int n, m, k, cnt;
int res[5005];
string ans[5005];
int main() {
  cin >> n >> m >> k;
  long long tot = (4 * n * m - 2 * n - 2 * m);
  if (k > tot) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  if (m == 1) {
    if (k <= n - 1) {
      cout << 1 << endl;
      cout << k << ' ' << 'D' << endl;
      return 0;
    }
    cout << 2 << endl;
    cout << n - 1 << ' ' << 'D' << endl;
    cout << k - n + 1 << ' ' << 'U' << endl;
    return 0;
  }
  if (k <= m - 1) {
    cout << 1 << endl;
    cout << k << ' ' << 'R' << endl;
    return 0;
  }
  res[++cnt] = m - 1, ans[cnt] = "R";
  if (k <= m * 2 - 2) {
    cout << 2 << endl;
    cout << res[1] << ' ' << ans[1] << endl;
    cout << k - m + 1 << ' ' << 'L' << endl;
    return 0;
  }
  res[++cnt] = m - 1, ans[cnt] = "L";
  k -= m * 2 - 2;
  for (int i = 1; i < n; i++) {
    res[++cnt] = 1, ans[cnt] = "D";
    if (k == 1) {
      cout << cnt << endl;
      for (int i = 1; i <= cnt; i++) {
        cout << res[i] << ' ' << ans[i] << endl;
      }
      return 0;
    }
    k--;
    if (k <= m * 3 - 3) {
      if (k >= 3) res[++cnt] = k / 3, ans[cnt] = "RUD";
      if (k % 3 == 1) res[++cnt] = 1, ans[cnt] = "R";
      if (k % 3 == 2) res[++cnt] = 1, ans[cnt] = "RU";
      cout << cnt << endl;
      for (int i = 1; i <= cnt; i++) {
        cout << res[i] << ' ' << ans[i] << endl;
      }
      return 0;
    }
    res[++cnt] = m - 1, ans[cnt] = "RUD";
    k -= m * 3 - 3;
    if (k <= m - 1) {
      res[++cnt] = k, ans[cnt] = "L";
      cout << cnt << endl;
      for (int i = 1; i <= cnt; i++) {
        cout << res[i] << ' ' << ans[i] << endl;
      }
      return 0;
    }
    res[++cnt] = m - 1, ans[cnt] = "L";
    k -= m - 1;
  }
  res[++cnt] = k, ans[cnt] = "U";
  cout << cnt << endl;
  for (int i = 1; i <= cnt; i++) {
    cout << res[i] << ' ' << ans[i] << endl;
  }
}
