#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e3 + 10, MAXS = 1e4 + 10, Mod = 1e9 + 7;
vector<pair<int, pair<int, int> > > v;
long long tot;
void print(int x, int y) {
  for (int i = 0; i <= y; i++)
    cout << "(" << 1 << "," << i + 1 << ")"
         << " ";
  for (int i = 1; i <= x; i++)
    cout << "(" << i + 1 << "," << y + 1 << ")"
         << " ";
  cout << endl;
}
int main() {
  ios::sync_with_stdio(false);
  int n, m, k;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) {
      int d = i + j;
      v.push_back(make_pair(d, make_pair(i, j)));
    }
  sort(v.begin(), v.end());
  for (int i = k - 1; i >= 0; i--) tot += v[i].first + 1;
  cout << tot << endl;
  for (int i = k - 1; i >= 0; i--) print(v[i].second.first, v[i].second.second);
  return 0;
}
