#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, k;
  cin >> n >> m >> k;
  if (k > 4 * n * m - 2 * n - 2 * m) {
    cout << "NO" << '\n';
    return 0;
  }
  vector<pair<int, int>> ans;
  if (n == 1) {
    ans.push_back({4, min(m - 1, k)});
    k -= min(m - 1, k);
    if (k > 0) {
      ans.push_back({2, min(m - 1, k)});
      k -= min(m - 1, k);
    }
  } else if (m == 1) {
    ans.push_back({3, min(n - 1, k)});
    k -= min(n - 1, k);
    if (k > 0) {
      ans.push_back({6, min(n - 1, k)});
      k -= min(n - 1, k);
    }
  } else {
    for (int i = 0; i < n - 1 && k > 0; i++) {
      if (k == 1) {
        ans.push_back({4, 1});
        k--;
        break;
      }
      if (k == 2) {
        ans.push_back({5, 1});
        k -= 2;
        break;
      }
      ans.push_back({1, min(m - 1, k / 3)});
      k -= min(3 * (m - 1), k / 3 * 3);
      if (k == 0) break;
      ans.push_back({2, min(m - 1, k)});
      k -= min(m - 1, k);
      if (k == 0) break;
      ans.push_back({3, 1});
      k--;
    }
    cerr << k << '\n';
    if (k > 0) {
      ans.push_back({4, min(m - 1, k)});
      k -= min(m - 1, k);
    }
    cerr << k << '\n';
    if (k > 0) {
      ans.push_back({2, min(m - 1, k)});
      k -= min(m - 1, k);
    }
    cerr << k << '\n';
    if (k > 0) {
      ans.push_back({6, min(n - 1, k)});
      k -= min(n - 1, k);
    }
  }
  cout << "YES\n";
  cout << ans.size() << '\n';
  for (auto it : ans) {
    cout << it.second << ' ';
    if (it.first == 1) cout << "RDU\n";
    if (it.first == 2) cout << "L\n";
    if (it.first == 3) cout << "D\n";
    if (it.first == 4) cout << "R\n";
    if (it.first == 5) cout << "RD\n";
    if (it.first == 6) cout << "U\n";
    if (it.first == 7) cout << "DRL\n";
    if (it.first == 8) cout << "DR\n";
  }
  return 0;
}
