#include <bits/stdc++.h>
using namespace std;
long long n, m, k, ans, cnt;
char c[333][333];
pair<int, pair<int, int> > p[3 * int(1e5)];
int main() {
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> c[i][j];
    }
  }
  for (int q = 1; q <= min(n, m); q++) {
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (c[i][j] == '*')
          if (i + q <= n && i - q > 0 && j + q <= m && j - q > 0) {
            if (c[i + q][j] == '*' && c[i - q][j] == '*' &&
                c[i][j + q] == '*' && c[i][j - q] == '*')
              ans++;
            if (ans == k) {
              cout << i << " " << j << endl
                   << i - q << " " << j << endl
                   << i + q << " " << j << endl
                   << i << " " << j - q << endl
                   << i << " " << j + q;
              return 0;
            }
          }
      }
    }
  }
  cout << -1;
  return 0;
}
