#include <bits/stdc++.h>
using namespace std;
bool a[300][300];
int X;
int Y;
int K;
int main(void) {
  scanf("%i%i%i", &X, &Y, &K);
  for (int i = 0; i < X; i++) {
    for (int j = 0; j < Y; j++) {
      int c;
      do {
        c = getchar();
      } while (c != '.' && c != '*');
      a[i][j] = (c == '*');
    }
  }
  int found = 0;
  for (int r = 1; r <= X; r++) {
    for (int x = r; x + r < X; x++)
      for (int y = r; y + r < Y; y++) {
        if (a[x][y] && a[x + r][y] && a[x - r][y] && a[x][y + r] &&
            a[x][y - r]) {
          found++;
          if (found == K) {
            printf("%i %i\n%i %i\n%i %i\n%i %i\n%i %i\n", x + 1, y + 1,
                   x - r + 1, y + 1, x + r + 1, y + 1, x + 1, y - r + 1, x + 1,
                   y + r + 1);
            return 0;
          }
        }
      }
  }
  printf("-1\n");
  return 0;
}
