#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, m, r = 1, x = 0, y;
  long k, cur = 0;
  char s[300][301];
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) cin >> s[i];
  while (r <= (n - 1) / 2 && r <= (m - 1) / 2) {
    for (int i = r; i < n - r && !x; i++) {
      for (int j = r; j < m - r; j++) {
        if (s[i][j] == '*') {
          if (s[i - r][j] == '*' && s[i + r][j] == '*' && s[i][j - r] == '*' &&
              s[i][j + r] == '*') {
            cur++;
            if (cur == k) {
              x = i;
              cout << i + 1 << ' ' << j + 1 << endl;
              cout << i + 1 - r << ' ' << j + 1 << endl;
              cout << i + 1 + r << ' ' << j + 1 << endl;
              cout << i + 1 << ' ' << j + 1 - r << endl;
              cout << i + 1 << ' ' << j + 1 + r << endl;
            }
          }
        }
      }
    }
    r++;
  }
  if (!x) cout << -1;
  return 0;
}
