#include <bits/stdc++.h>
using namespace std;
int n, m, k;
bool *sky;
inline int SKY(int i, int j) { return sky[j * m + i]; }
bool isStar(int i, int j, int r) {
  return SKY(i, j) && SKY(i, j + r) && SKY(i, j - r) && SKY(i + r, j) &&
         SKY(i - r, j);
}
int main() {
  cin >> n >> m >> k;
  sky = new bool[n * m];
  string s;
  for (int j = 0; j < n; ++j) {
    cin >> s;
    for (int i = 0; i < m; ++i) {
      sky[j * m + i] = (s[i] == '*');
    }
  }
  int total = 0;
  int r = 1;
  while (r <= n / 2 && r <= m / 2) {
    for (int j = r; j < (n - r); ++j) {
      for (int i = r; i < (m - r); ++i) {
        if (isStar(i, j, r)) {
          total++;
          if (total == k) {
            cout << j + 1 << " " << i + 1 << endl;
            cout << j + 1 - r << " " << i + 1 << endl;
            cout << j + 1 + r << " " << i + 1 << endl;
            cout << j + 1 << " " << i + 1 - r << endl;
            cout << j + 1 << " " << i + 1 + r << endl;
            exit(0);
          }
        }
      }
    }
    ++r;
  }
  cout << "-1" << endl;
  return 0;
}
