#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int n, m, k;
vector<int> ans1;
vector<string> ans2;
void print() {
  cout << ans1.size() << endl;
  for (int i = 0; i < ans1.size(); i++)
    cout << ans1[i] << " " << ans2[i] << endl;
}
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n >> m >> k;
  if (k > 4 * n * m - 2 * n - 2 * m) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  if (k < m) {
    cout << "1" << endl;
    cout << k << " R" << endl;
    return 0;
  }
  if (k < 2 * m - 1) {
    cout << "2" << endl;
    cout << m - 1 << " R" << endl;
    cout << k - m + 1 << " L" << endl;
    return 0;
  }
  k -= 2 * m - 2;
  if (m > 1) {
    ans1.push_back(m - 1);
    ans1.push_back(m - 1);
    ans2.push_back("R");
    ans2.push_back("L");
  }
  for (int i = 1; i < n; i++) {
    if (k) {
      k--;
      ans1.push_back(1);
      ans2.push_back("D");
    } else {
      print();
      return 0;
    }
    if (m > 1) {
      if (k >= 3 * m - 3) {
        ans1.push_back(m - 1);
        ans2.push_back("RUD");
        k -= 3 * m - 3;
      } else {
        if (k >= 3) {
          ans1.push_back(k / 3);
          ans2.push_back("RUD");
        }
        k %= 3;
        if (k == 1) {
          ans1.push_back(1);
          ans2.push_back("R");
        }
        if (k == 2) {
          ans1.push_back(1);
          ans2.push_back("RU");
        }
        print();
        return 0;
      }
      if (k >= m - 1) {
        ans1.push_back(m - 1);
        ans2.push_back("L");
        k -= m - 1;
      } else {
        if (k > 0) {
          ans1.push_back(k);
          ans2.push_back("L");
        }
        print();
        return 0;
      }
    }
  }
  if (k > 0) {
    ans1.push_back(k);
    ans2.push_back("U");
  }
  print();
  return 0;
}
