#include <bits/stdc++.h>
using namespace std;
const int inf = 2000000;
vector<vector<char> > sky;
map<int, vector<pair<int, int> > > cv;
int X, Y;
int iss(int x, int y, int r) {
  if (x >= r && x + r < X) {
    if (y >= r && y + r < Y) {
      if (sky[y - r][x] == '*' && sky[y + r][x] == '*' &&
          sky[y][x - r] == '*' && sky[y][x + r] == '*') {
        return 1;
      }
    }
  }
  return 0;
}
int main() {
  int ck, k;
  cin >> Y >> X >> k;
  sky.assign(Y, vector<char>(X, ' '));
  for (int j = 0; j < Y; j++) {
    for (int i = 0; i < X; i++) {
      cin >> sky[j][i];
    }
  }
  for (int j = 0; j < Y; j++) {
    for (int i = 0; i < X; i++) {
      if (sky[j][i] == '*') {
        for (int r = 1; r <= min(i, j) + 1; r++) {
          if (iss(i, j, r)) {
            cv[r].push_back({j, i});
          }
        }
      }
    }
  }
  for (ck = 1; ck <= cv.size(); ck++) {
    if (cv[ck].size() < k) {
      k -= cv[ck].size();
    } else {
      int fy = cv[ck][k - 1].first + 1;
      int fx = cv[ck][k - 1].second + 1;
      cout << fy << " " << fx << endl;
      cout << fy - ck << " " << fx << endl;
      cout << fy + ck << " " << fx << endl;
      cout << fy << " " << fx - ck << endl;
      cout << fy << " " << fx + ck << endl;
      return 0;
    }
  }
  cout << "-1";
}
