#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, l, kk, tot = 0;
  int map[310][310] = {0}, n, m;
  char c;
  cin >> n >> m >> kk;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) {
      cin >> c;
      if (c == '.') {
        map[i][j] = 0;
      }
      if (c == '*') {
        map[i][j] = 1;
      }
    }
  }
  if (n < m) {
    l = n;
  } else {
    l = m;
  }
  for (k = 1; k <= l; k++) {
    for (i = 1; i <= n; i++) {
      if (i - k >= 1 && i + k <= n) {
        for (j = 1; j <= m; j++) {
          if (j - k >= 1 && j + k <= m) {
            if (map[i][j] == 1 && map[i + k][j] == 1 && map[i - k][j] == 1 &&
                map[i][j - k] && map[i][j + k] == 1) {
              tot++;
              if (tot == kk) {
                cout << i << ' ' << j << endl;
                cout << i - k << ' ' << j << endl;
                cout << i + k << ' ' << j << endl;
                cout << i << ' ' << j - k << endl;
                cout << i << ' ' << j + k << endl;
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
