#include <bits/stdc++.h>
using namespace std;
long long k;
vector<pair<long long, char>> aa;
void print(long long a, char c) {
  a = min(a, k);
  if (a != 0) {
    aa.push_back({a, c});
  }
  k -= a;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m;
  cin >> n >> m >> k;
  if (k > 4 * n * m - 2 * n - 2 * m) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (long long i = 0; i < m - 1; i++) {
    print(1, 'R');
    print(n - 1, 'D');
    print(n - 1, 'U');
  }
  print(m - 1, 'L');
  for (long long i = 0; i < n - 1; i++) {
    print(1, 'D');
    print(m - 1, 'R');
    print(m - 1, 'L');
  }
  print(n - 1, 'U');
  cout << aa.size() << "\n";
  for (auto i : aa) {
    cout << i.first << " " << i.second << "\n";
  }
}
