#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 123;
const int mod = 1e9 + 7;
const int INF = 1e9 + 1;
const double eps = 1e-9;
const double pi = acos(-1.0);
vector<pair<int, int> > v;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m, k, sum = 0;
  cin >> n >> m >> k;
  for (int num = 2; num <= n + m; num++) {
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (i + j == num) {
          k--;
          v.push_back(make_pair(i, j));
        }
        if (!k) goto h;
      }
    }
  }
h:;
  for (auto i : v) {
    sum += (i.first + i.second - 1);
  }
  cout << sum << endl;
  for (int i = v.size() - 1; i >= 0; i--) {
    int x = 1, y = 0;
    while (y != v[i].second) {
      y++;
      cout << "(1," << y << ") ";
    }
    while (x != v[i].first) {
      x++;
      cout << "(" << x << ',' << y << ") ";
    }
    cout << endl;
  }
  return 0;
}
