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