#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, ans = 0;
  int a[55][55];
  cin >> n >> m >> k;
  memset(a, 0, sizeof(a));
  for (int i = 0; i < k; i++) {
    int mini = 111, x, y;
    for (int j = 1; j <= n; j++) {
      for (int k = 1; k <= m; k++) {
        if (mini > j + k - 1 && !a[j][k]) {
          mini = j + k - 1;
          x = j;
          y = k;
        }
      }
    }
    a[x][y] = 1;
    ans += mini;
  }
  printf("%d\n", ans);
  for (int i = n; i >= 1; i--) {
    for (int j = m; j >= 1; j--) {
      if (a[i][j]) {
        for (int c = 1, d = 1; c <= i; c++) {
          if (c != i)
            printf("(%d,%d) ", c, d);
          else {
            for (; d <= j; d++) {
              if (d != j)
                printf("(%d,%d) ", c, d);
              else
                printf("(%d,%d)\n", c, d);
            }
          }
        }
      }
    }
  }
  return 0;
}
