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