#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, string> > v;
inline void print(long long x) {
  cout << (long long)v.size() + x << '\n';
  for (auto it : v) cout << it.first << " " << it.second << '\n';
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, m, k;
  cin >> n >> m >> k;
  if (k > 4 * n * m - 2 * n - 2 * m) {
    cout << "NO" << '\n';
    return 0;
  }
  cout << "YES" << '\n';
  if (n == 1) {
    if (k > m - 1)
      cout << 2 << '\n' << m - 1 << " R" << '\n' << k - m + 1 << " L" << '\n';
    else
      cout << 1 << '\n' << k << " R" << '\n';
    return 0;
  }
  if (m == 1) {
    if (k > n - 1)
      cout << 2 << '\n' << n - 1 << " D" << '\n' << k - n + 1 << " U" << '\n';
    else
      cout << 1 << '\n' << k << " D" << '\n';
    return 0;
  }
  if (k <= n - 1) {
    cout << 1 << '\n' << k << " D" << '\n';
    return 0;
  }
  v.emplace_back(n - 1, "D");
  k -= (n - 1);
  if (k <= n - 1) {
    print(1);
    cout << k << " U" << '\n';
    return 0;
  }
  v.emplace_back(n - 1, "U");
  k -= (n - 1);
  for (long long i = 0; i < m - 1; i++) {
    if (k == 1) {
      print(1);
      cout << "1 R" << '\n';
      return 0;
    }
    v.emplace_back(1, "R");
    k--;
    if (k <= 3 * (n - 1)) {
      if (k % 3 == 0) {
        print(1);
        cout << k / 3 << " DLR" << '\n';
        return 0;
      } else if (k <= 2) {
        print(1);
        if (k % 3 == 1)
          cout << "1 D" << '\n';
        else
          cout << "1 DL" << '\n';
      } else {
        print(2);
        cout << k / 3 << " DLR" << '\n';
        if (k % 3 == 1)
          cout << "1 D" << '\n';
        else
          cout << "1 DL" << '\n';
      }
      return 0;
    }
    v.emplace_back(n - 1, "DLR");
    k -= 3 * (n - 1);
    if (k <= n - 1) {
      print(1);
      cout << k << " U" << '\n';
      return 0;
    }
    v.emplace_back(n - 1, "U");
    k -= (n - 1);
  }
  print(1);
  cout << k << " L" << '\n';
  return 0;
}
