#include <bits/stdc++.h>
using namespace std;
int main() {
  string s[305];
  int n, m, k;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  int ans = 0;
  for (int x = 1; x < (m + 1) / 2; x++) {
    for (int i = x; i < n - x; i++) {
      for (int j = x; j < m - x; j++) {
        if (s[i][j] == '*' and s[i + x][j] == '*' and s[i - x][j] == '*' and
            s[i][j - x] == '*' and s[i][j + x] == '*') {
          ans++;
        }
        if (ans == k) {
          cout << i + 1 << " " << j + 1 << endl;
          cout << i - x + 1 << " " << j + 1 << endl;
          cout << i + x + 1 << " " << j + 1 << endl;
          cout << i + 1 << " " << j - x + 1 << endl;
          cout << i + 1 << " " << j + x + 1;
          return 0;
        }
      }
    }
  }
  cout << -1;
  return 0;
}
