#include <bits/stdc++.h>
using namespace std;
struct Star {
  Star(int r, int x, int y) : r(r), x(x), y(y) {}
  bool operator<(const Star& other) const {
    if (r == other.r) {
      if (x == other.x) {
        return y < other.y;
      }
      return x < other.x;
    }
    return r < other.r;
  }
  int r;
  int x;
  int y;
};
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  vector<string> p(n);
  for (int i = 0; i < n; ++i) cin >> p[i];
  vector<Star> s;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < m; ++j) {
      if (p[i][j] == '*') {
        for (int l = 1; i - l >= 0 && i + l < n && j - l >= 0 && j + l < m;
             ++l) {
          if (p[i - l][j] == '*' && p[i + l][j] == '*' && p[i][j - l] == '*' &&
              p[i][j + l] == '*') {
            s.push_back(Star(l, i, j));
          }
        }
      }
    }
  }
  sort(s.begin(), s.end());
  if (s.size() < k) {
    cout << -1 << endl;
  } else {
    int x = s[k - 1].x + 1;
    int y = s[k - 1].y + 1;
    int r = s[k - 1].r;
    cout << x << " " << y << endl;
    cout << x - r << " " << y << endl;
    cout << x + r << " " << y << endl;
    cout << x << " " << y - r << endl;
    cout << x << " " << y + r << endl;
  }
  return 0;
}
