#include <bits/stdc++.h>
using namespace std;
int min(int a, int b) {
  if (a < b) return a;
  return b;
}
int main() {
  int n, m, k, i, j, ind1, ind2, ind3, ind4, p;
  char a[310][310];
  for (i = 0; i < 310; i++) {
    for (j = 0; j < 310; j++) a[i][j] = '.';
  }
  cin >> n >> m >> k;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) cin >> a[i][j];
  }
  for (p = 1; p < min(n, m); p++) {
    for (i = 1; i <= n; i++) {
      for (j = 1; j <= m; j++) {
        if (a[i][j] == '*') {
          ind1 = i - p;
          ind2 = i + p;
          ind3 = j - p;
          ind4 = j + p;
          if (ind1 >= 0 && ind2 <= (n + 1) && ind3 >= 0 && ind4 <= (m + 1)) {
            if (a[ind1][j] == '*' && a[ind2][j] == '*' && a[i][ind3] == '*' &&
                a[i][ind4] == '*') {
              k--;
              if (k == 0) {
                cout << i << " " << j << endl;
                cout << ind1 << " " << j << endl;
                cout << ind2 << " " << j << endl;
                cout << i << " " << ind3 << endl;
                cout << i << " " << ind4 << endl;
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << "-1";
  return 0;
}
