#include <bits/stdc++.h>
using namespace std;
int n, m, k;
char a[350][350];
bool ex(int x, int y) {
  return (x >= 0 && x < n && y >= 0 && y < m && a[x][y] == '*');
}
int main() {
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) cin >> a[i][j];
  for (int r = 1; r <= min(n, m); r++) {
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (ex(i + r, j) && ex(i - r, j) && ex(i, r + j) && ex(i, j - r) &&
            ex(i, j)) {
          k--;
          if (k == 0) {
            cout << i + 1 << " " << j + 1 << endl;
            cout << i + 1 - r << " " << j + 1 << endl;
            cout << i + 1 + r << " " << j + 1 << endl;
            cout << i + 1 << " " << j + 1 - r << endl;
            cout << i + 1 << " " << j + 1 + r;
            return 0;
          }
        }
      }
    }
  }
  cout << -1;
  return 0;
}
