#include <bits/stdc++.h>
using namespace std;
struct Constellation {
  int rc, cc, radius;
  bool operator<(const Constellation& c) const {
    if (radius != c.radius) return radius < c.radius;
    if (rc != c.rc) return rc < c.rc;
    return cc < c.cc;
  }
};
int N, M;
int B[304][304];
char line[500];
int main(int argc, char* argv[]) {
  int K;
  gets(line);
  sscanf(line, "%d %d %d", &N, &M, &K);
  for (int i = 0; i < N; ++i) {
    gets(line);
    for (int j = 0; j < M; ++j) B[i][j] = line[j] == '*';
  }
  int NM = N < M ? N : M;
  for (int rad = 1; rad < NM; ++rad) {
    int N1 = N - rad, M1 = M - rad;
    for (int rc = rad; rc < N1; ++rc) {
      for (int cc = rad; cc < M1; ++cc) {
        if (B[rc][cc] && B[rc - rad][cc] && B[rc + rad][cc] &&
            B[rc][cc - rad] && B[rc][cc + rad]) {
          if (--K == 0) {
            printf("%d %d\n", rc + 1, cc + 1);
            printf("%d %d\n", rc + 1 - rad, cc + 1);
            printf("%d %d\n", rc + 1 + rad, cc + 1);
            printf("%d %d\n", rc + 1, cc + 1 - rad);
            printf("%d %d\n", rc + 1, cc + 1 + rad);
            return 0;
          }
        }
      }
    }
  }
  if (K) puts("-1");
  return 0;
}
