#include <bits/stdc++.h>
using namespace std;
const int tam = 100010;
const int MOD = 1000000007;
const int MOD1 = 998244353;
const double EPS = 1e-100;
const double PI = acos(-1);
vector<pair<int, string>> v;
void print() {
  cout << "YES\n";
  cout << v.size() << '\n';
  for (int i = 0; i < v.size(); i++) {
    cout << v[i].first << ' ' << v[i].second << '\n';
  }
  exit(0);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, m, k;
  int pro;
  cin >> n >> m >> k;
  if (k > 4 * n * m - 2 * n - 2 * m)
    cout << "NO\n";
  else {
    if (m > 1) {
      if (k <= m - 1) {
        v.push_back(make_pair(k, "R"));
        print();
      }
      v.push_back(make_pair(m - 1, "R"));
      k -= m - 1;
      if (k <= m - 1) {
        v.push_back(make_pair(k, "L"));
        print();
      }
      v.push_back(make_pair(m - 1, "L"));
      k -= m - 1;
    }
    for (int i = 0; i < n - 1; i++) {
      v.push_back(make_pair(1, "D"));
      if (k == 1) {
        print();
      }
      k--;
      if (m > 1) {
        if (k <= (m - 1) * 3) {
          pro = k % 3;
          if (k / 3 > 0) v.push_back(make_pair(k / 3, "RUD"));
          if (pro == 1) v.push_back(make_pair(1, "R"));
          if (pro == 2) v.push_back(make_pair(1, "RU"));
          print();
        }
        v.push_back(make_pair(m - 1, "RUD"));
        k -= (m - 1) * 3;
        if (k <= m - 1) {
          v.push_back(make_pair(k, "L"));
          print();
        }
        v.push_back(make_pair(m - 1, "L"));
        k -= m - 1;
      }
    }
    v.push_back(make_pair(k, "U"));
    print();
  }
  return 0;
}
