#include <bits/stdc++.h>
using namespace std;
char arr[500][500];
int dc[] = {0, 0, 0, -1, 1};
int dr[] = {0, -1, 1, 0, 0};
int n, m, ans = 0;
int chck(int i, int j, int p) {
  for (int q = 0; q < 5; q++)
    if (((i + p * dr[q]) < 0) || ((i + p * dr[q]) >= n) ||
        ((j + p * dc[q]) < 0) || ((j + p * dc[q]) >= m)) {
      return 0;
    } else {
      if (arr[i + p * dr[q]][j + p * dc[q]] != '*') return 0;
    }
  return 1;
}
int printans(int i, int j, int k) {
  for (int q = 0; q < 5; q++)
    cout << i + dr[q] * k + 1 << " " << j + dc[q] * k + 1 << endl;
  return 0;
}
int k;
int main() {
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) cin >> arr[i];
  int l = 0;
  for (l = 1; l <= min(n, m); l++)
    for (int i = 1; i < n - 1; i++) {
      for (int j = 1; j < m - 1; j++) {
        if ((chck(i, j, l)) == 1) {
          ans++;
          if (ans == k) {
            printans(i, j, l);
            return 0;
          }
        }
      }
    }
  printf("-1");
  return 0;
}
