#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void print(T A) {
  cout << "{ ";
  for (__typeof((A).begin()) i = (A).begin(); i != (A).end(); ++i)
    cout << *i << ", ";
  cout << "}" << endl;
}
template <class T>
inline void print2(T A) {
  cout << "{" << endl;
  for (__typeof((A).begin()) i = (A).begin(); i != (A).end(); ++i) {
    cout << " { ";
    for (__typeof((*i).begin()) j = (*i).begin(); j != (*i).end(); j++)
      cout << *j << ", ";
    cout << "}";
    cout << endl;
  }
  cout << "}" << endl;
}
template <class T>
inline void printp(T A) {
  cout << "{ ";
  for (__typeof((A).begin()) i = (A).begin(); i != (A).end(); ++i) {
    cout << "{" << i->first << ", " << i->second << "}";
    cout << ", ";
  }
  cout << " }" << endl;
}
template <class T>
inline void print(T A[], int n) {
  cout << "{ ";
  for (int i = 0; i < n; i++) {
    cout << A[i];
    if (i + 1 < n) cout << ", ";
  }
  cout << " }" << endl;
}
template <class T>
inline void print2(T A[], int n, int m) {
  cout << "{" << endl;
  for (int i = 0; i < n; ++i) {
    cout << " { ";
    for (int j = 0; j < m; ++j) {
      cout << A[i][j];
      if (j + 1 < m) cout << ", ";
    }
    cout << " } " << endl;
  }
  cout << "}" << endl;
}
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int oo = k;
  vector<string> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int p[] = {-1, 1, 0, 0};
  int q[] = {0, 0, -1, 1};
  int t = min(n, m);
  int cnt = 0;
  for (int k = 1; k < t; ++k)
    for (int i = 0; i < n - k; ++i)
      for (int j = 0; j < m - k; ++j) {
        if (a[i][j] != '*') continue;
        bool ok = true;
        for (int z = 0; z < 4; ++z) {
          if (i + k * p[z] >= 0 && i + k * p[z] < n && j + k * q[z] >= 0 &&
              j + k * q[z] < m && a[i + k * p[z]][j + k * q[z]] == '*')
            continue;
          else {
            ok = false;
            break;
          }
        }
        if (ok) {
          cnt++;
          if (cnt == oo) {
            cout << i + 1 << " " << j + 1 << endl;
            for (int z = 0; z < 4; ++z)
              cout << i + k * p[z] + 1 << " " << j + k * q[z] + 1 << endl;
            return 0;
          }
        }
      }
  cout << -1 << endl;
}
