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