#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  vector<string> ss(n);
  for (int i = 0; i < n; i++) {
    string buf;
    cin >> buf;
    ss[i] = buf;
  }
  for (int r = 1;; r++) {
    if (r > max(n, m)) {
      cout << -1 << endl;
      return 0;
    }
    int dx[4] = {-r, r, 0, 0};
    int dy[4] = {0, 0, -r, r};
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (ss[i][j] == '.') continue;
        bool flag = true;
        for (int l = 0; l < 4; l++) {
          int posx = i + dx[l];
          int posy = j + dy[l];
          if (!(posx >= 0 && posx < n && posy >= 0 && posy < m &&
                ss[posx][posy] == '*')) {
            flag = false;
            break;
          }
        }
        if (flag) {
          k--;
          if (k == 0) {
            cout << i + 1 << " " << j + 1 << endl;
            for (m = 0; m < 4; m++) {
              cout << i + dx[m] + 1 << " " << j + dy[m] + 1 << endl;
            }
            return 0;
          }
        }
      }
    }
  }
  return 0;
}
