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