#include <bits/stdc++.h>
using namespace std;
const int inf(1010101010);
const int dy[4] = {-1, 1, 0, 0};
const int dx[4] = {0, 0, -1, 1};
int h, w, k;
char a[303][303];
int yy[5], xx[5];
inline bool oob(int y, int x) { return y < 0 || y >= h || x < 0 || x >= w; }
int main() {
  cin >> h >> w >> k;
  for (int i(0); i < (h); i++) scanf("%s", a[i]);
  for (int r(1); r <= h; r++) {
    for (int y0(0); y0 < (h); y0++)
      for (int x0(0); x0 < (w); x0++)
        if (a[y0][x0] == '*') {
          yy[0] = y0, xx[0] = x0;
          for (int d(0); d < (4); d++) {
            int y1(y0 + r * dy[d]), x1(x0 + r * dx[d]);
            if (oob(y1, x1)) goto nxt;
            if (a[y1][x1] == '.') goto nxt;
            yy[d + 1] = y1, xx[d + 1] = x1;
          }
          k--;
          if (k == 0) {
            for (int i(0); i < (5); i++) {
              printf("%d %d\n", 1 + yy[i], 1 + xx[i]);
            }
            exit(0);
          }
        nxt:;
        }
  }
  puts("-1");
}
