#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n, k;
  scanf("%d%d%d", &n, &m, &k);
  string st[n + 10];
  int i, j, l, a, b, c, d, r, R, cnt;
  for (i = 0; i < n; i++) cin >> st[i];
  if (m < n)
    R = m / 2;
  else
    R = n / 2;
  r = 1;
  cnt = 0;
  while (r <= R) {
    for (i = r; i < n - r; i++) {
      for (j = r; j < m - r; j++) {
        if (st[i][j] == '.') continue;
        if (st[i - r][j] == '*' && st[i][j - r] == '*' && st[i][j + r] == '*' &&
            st[i + r][j] == '*') {
          cnt = cnt + 1;
          if (cnt == k) {
            printf("%d %d\n", i + 1, j + 1);
            printf("%d %d\n", i - r + 1, j + 1);
            printf("%d %d\n", i + r + 1, j + 1);
            printf("%d %d\n", i + 1, j - r + 1);
            printf("%d %d\n", i + 1, j + r + 1);
            return 0;
          }
        }
      }
    }
    r = r + 1;
  }
  cout << "-1" << endl;
  return 0;
}
