#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int z = (min(n, m) - 1) / 2;
  string a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int co = 0;
  int p = z;
  z = 1;
  while (z <= p) {
    for (int i = z; i < n - z; i++) {
      for (int j = z; j <= m - z; j++) {
        if (a[i][j] == '*' && a[i - z][j] == '*' && a[i][j - z] == '*' &&
            a[i + z][j] == '*' && a[i][j + z] == '*')
          co++;
        if (co == k) {
          cout << i + 1 << " " << j + 1 << endl;
          cout << i + 1 - z << " " << j + 1 << endl;
          cout << i + 1 + z << " " << j + 1 << endl;
          cout << i + 1 << " " << j + 1 - z << endl;
          cout << i + 1 << " " << j + 1 + z << endl;
          break;
        }
      }
      if (co == k) break;
    }
    if (co == k) break;
    z++;
  }
  if (co != k) cout << -1;
  return 0;
}
