#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  if (4 * n * m - 2 * n - 2 * m < k) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES"
       << "\n";
  if (n == 1) {
    cout << (k > m - 1 ? 2 : 1) << "\n";
    cout << min(m - 1, k) << " R\n";
    if (k > m - 1) cout << k - (m - 1) << " L\n";
  } else if (m == 1) {
    cout << (k > n - 1 ? 2 : 1) << "\n";
    cout << min(n - 1, k) << " D\n";
    if (k > n - 1) cout << k - (n - 1) << " U\n";
  } else if (k / (2 * n - 1) < m) {
    int a = k / (2 * n - 1);
    int s = a * 3;
    k -= a * (2 * n - 1);
    if (k) s++;
    if (k > n - 1) s++;
    cout << s << "\n";
    for (int i = 0; i < a; ++i)
      cout << n - 1 << " D\n"
           << n - 1 << " U\n"
           << "1 R\n";
    if (k) cout << min(k, n - 1) << " D\n";
    if (k > n - 1) cout << k - n + 1 << " U\n";
  } else {
    k -= (2 * n - 1) * (m - 1) + n - 1;
    int a = k / (2 * m - 1);
    int s = 3 * (m - 1) + 1 + 3 * a;
    k -= (2 * m - 1) * a;
    if (k) s++;
    if (k > m - 1) s++;
    cout << s << "\n";
    for (int i = 0; i < m - 1; ++i)
      cout << n - 1 << " D\n"
           << n - 1 << " U\n"
           << "1 R\n";
    cout << n - 1 << " D\n";
    for (int i = 0; i < a; ++i)
      cout << m - 1 << " L\n"
           << m - 1 << " R\n"
           << "1 U\n";
    if (k) cout << min(m - 1, k) << " L\n";
    if (k > m - 1) cout << k - m + 1 << " R\n";
  }
}
