#include <bits/stdc++.h>
using namespace std;
const int INF = 1e6;
const int MAX = 1e5 + 10;
long long llipower(long long x, long long y) {
  long long res = 1;
  x = x % 1000000007;
  while (y > 0) {
    if (y & 1) res = (res * x) % 1000000007;
    y = y >> 1;
    x = (x * x) % 1000000007;
  }
  return res;
}
long long gcd(long long a, long long b) {
  if (!a) return b;
  return gcd(b % a, a);
}
long long binarySearch(vector<int> arr, int l, int r, int x) {
  if (r >= l) {
    long long mid = l + (r - l) / 2;
    if (arr[mid] == x) return mid;
    if (arr[mid] > x) return binarySearch(arr, l, mid - 1, x);
    return binarySearch(arr, mid + 1, r, x);
  }
  return -1;
}
template <typename T>
void printvec(vector<T> inp) {
  for (int i = 0; i < inp.size(); i++) {
    cout << inp[i] << " ";
  }
  cout << "\n";
}
template <typename T>
T ceildiv(T x, T y) {
  return 1 + ((x - 1) / y);
}
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  stringstream ss;
  long long moves = 0;
  if ((4 * n * m - 2 * n - 2 * m) >= k) {
    cout << "YES"
         << "\n";
    if (k <= (m - 1)) {
      if (k / 4 != 0)
        ss << k / 4 << " "
           << "RRRR"
           << "\n";
      if (k % 4 != 0)
        ss << k % 4 << " "
           << "R"
           << "\n";
    } else if (k <= 2 * m - 2) {
      if ((m - 1) / 4 != 0)
        ss << (m - 1) / 4 << " "
           << "RRRR"
           << "\n";
      if ((m - 1) % 4 != 0)
        ss << (m - 1) % 4 << " "
           << "R"
           << "\n";
      k -= (m - 1);
      if (k / 4 != 0)
        ss << k / 4 << " "
           << "LLLL"
           << "\n";
      if (k % 4 != 0)
        ss << k % 4 << " "
           << "L"
           << "\n";
    } else if (k <= (2 * m - 1 + (4 * m - 3) * (n - 1))) {
      if ((m - 1) / 4 != 0)
        ss << (m - 1) / 4 << " "
           << "RRRR"
           << "\n";
      if ((m - 1) % 4 != 0)
        ss << (m - 1) % 4 << " "
           << "R"
           << "\n";
      if ((m - 1) / 4 != 0)
        ss << (m - 1) / 4 << " "
           << "LLLL"
           << "\n";
      if ((m - 1) % 4 != 0)
        ss << (m - 1) % 4 << " "
           << "L"
           << "\n";
      ss << 1 << " D"
         << "\n";
      k -= (2 * m - 1);
      if (k <= (m - 1)) {
        if (k / 4 != 0)
          ss << k / 4 << " "
             << "RRRR"
             << "\n";
        if (k % 4 != 0)
          ss << k % 4 << " "
             << "R"
             << "\n";
      } else if (k <= (4 * m - 4)) {
        if ((m - 1) / 4 != 0)
          ss << (m - 1) / 4 << " "
             << "RRRR"
             << "\n";
        if ((m - 1) % 4 != 0)
          ss << (m - 1) % 4 << " "
             << "R"
             << "\n";
        k -= (m - 1);
        if (k / 3 != 0)
          ss << k / 3 << " "
             << "UDL"
             << "\n";
        k = k % 3;
        if (k == 1)
          ss << 1 << " U"
             << "\n";
        else if (k == 2)
          ss << 1 << " UD"
             << "\n";
        else if (k == 3)
          ss << 1 << " UDL"
             << "\n";
      } else {
        if (n > 2) {
          for (int i = 0; i < k / (4 * m - 3); i++) {
            if ((m - 1) / 4 != 0)
              ss << (m - 1) / 4 << " "
                 << "RRRR"
                 << "\n";
            if ((m - 1) % 4 != 0)
              ss << (m - 1) % 4 << " "
                 << "R"
                 << "\n";
            ss << m - 1 << " "
               << "UDL"
               << "\n";
            ss << 1 << " D"
               << "\n";
          }
          k = k % (4 * m - 3);
        }
        if (k <= (m - 1)) {
          if (k / 4 != 0)
            ss << k / 4 << " "
               << "RRRR"
               << "\n";
          if (k % 4 != 0)
            ss << k % 4 << " "
               << "R"
               << "\n";
        } else {
          if ((m - 1) / 4 != 0)
            ss << (m - 1) / 4 << " "
               << "RRRR"
               << "\n";
          if ((m - 1) % 4 != 0)
            ss << (m - 1) % 4 << " "
               << "R"
               << "\n";
          k -= (m - 1);
          if (k / 3 != 0)
            ss << k / 3 << " "
               << "UDL"
               << "\n";
          k = k % 3;
          if (k == 1)
            ss << 1 << " U"
               << "\n";
          else if (k == 2)
            ss << 1 << " UD"
               << "\n";
          else if (k == 3)
            ss << 1 << " UDL"
               << "\n";
        }
      }
    } else {
      if ((m - 1) / 4 != 0)
        ss << (m - 1) / 4 << " "
           << "RRRR"
           << "\n";
      if ((m - 1) % 4 != 0)
        ss << (m - 1) % 4 << " "
           << "R"
           << "\n";
      if ((m - 1) / 4 != 0)
        ss << (m - 1) / 4 << " "
           << "LLLL"
           << "\n";
      if ((m - 1) % 4 != 0)
        ss << (m - 1) % 4 << " "
           << "L"
           << "\n";
      ss << 1 << " D"
         << "\n";
      for (int i = 0; i < n - 1; i++) {
        if ((m - 1) / 4 != 0)
          ss << (m - 1) / 4 << " "
             << "RRRR"
             << "\n";
        if ((m - 1) % 4 != 0)
          ss << (m - 1) % 4 << " "
             << "R"
             << "\n";
        if ((m - 1) > 0)
          ss << m - 1 << " "
             << "UDL"
             << "\n";
        if (i != n - 2)
          ss << 1 << " D"
             << "\n";
      }
      k -= (2 * m - 1 + (4 * m - 3) * (n - 1) - 1);
      if (k / 4 != 0)
        ss << k / 4 << " UUUU"
           << "\n";
      if (k % 4 != 0)
        ss << k % 4 << " "
           << "U"
           << "\n";
    }
    string sconv = ss.str();
    for (int i = 0; i < sconv.size(); i++) {
      if (sconv[i] == '\n') {
        moves++;
      }
    }
    cout << moves << "\n";
    cout << sconv;
  } else
    cout << "NO"
         << "\n";
}
