#include <bits/stdc++.h>
using namespace std;
int n, m, k, anscnt;
vector<vector<pair<int, int> > > ans;
vector<pair<int, pair<int, int> > > all;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++)
      all.push_back(make_pair(i + j, make_pair(i, j)));
  sort(all.begin(), all.end());
  for (auto cel : all) {
    if (!k) break;
    k--;
    pair<int, int> cell = cel.second;
    vector<pair<int, int> > vec;
    for (int i = 1; i <= cell.first; i++) vec.push_back(make_pair(i, 1));
    for (int j = 2; j <= cell.second; j++)
      vec.push_back(make_pair(cell.first, j));
    ans.push_back(vec);
    anscnt += ((int)(vec).size());
  }
  reverse(ans.begin(), ans.end());
  cout << anscnt << '\n';
  for (auto vec : ans) {
    for (auto cell : vec)
      cout << '(' << cell.first << ',' << cell.second << ')' << ' ';
    cout << '\n';
  }
  return 0;
}
