#include <bits/stdc++.h>
using namespace std;
string stars[301];
vector<pair<int, int> > location[151];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, k, l, c1, c2, c3, c4;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) cin >> stars[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      c1 = i;
      c3 = i;
      c2 = j;
      c4 = j;
      if (stars[i][j] != '*') continue;
      for (int l = 0; l < 150; l++) {
        c1--;
        c2--;
        c3++;
        c4++;
        if (c1 < 0 || c2 < 0 || c3 > n - 1 || c4 > m - 1) break;
        if (stars[c1][j] == '*' && stars[c3][j] == '*' && stars[i][c4] == '*' &&
            stars[i][c2] == '*') {
          location[l + 1].push_back({i, j});
        }
      }
    }
  }
  for (int i = 1; i <= 150; i++) {
    if (location[i].size() < k)
      k -= location[i].size();
    else {
      pair<int, int> x = location[i][k - 1];
      int c1 = x.first + 1, c2 = x.second + 1;
      cout << c1 << " " << c2 << "\n"
           << c1 - i << " " << c2 << "\n"
           << c1 + i << " " << c2 << "\n"
           << c1 << " " << c2 - i << "\n"
           << c1 << " " << c2 + i << "\n";
      return 0;
    }
  }
  cout << "-1\n";
  return 0;
}
