#include <bits/stdc++.h>
using namespace std;
string s;
char c[400][400];
int n, k, d, m, A, B, r, a[1000010], b[100001];
int main() {
  scanf("%d %d %d", &n, &m, &k);
  for (int i = 1; i <= n; i++) {
    scanf("\n");
    for (int j = 1; j <= m; j++) scanf("%c", &c[i][j]);
  }
  for (int x = 1; x <= min(n - 1, m - 1) / 2; x++) {
    for (int i = x + 1; i <= n - x; i++) {
      for (int j = x + 1; j <= m - x; j++) {
        if (c[i][j] == '*' && c[i - x][j] == '*' && c[i + x][j] == '*' &&
            c[i][j - x] == '*' && c[i][j + x] == '*')
          d++;
        if (d == k) {
          cout << i << ' ' << j << endl;
          cout << i - x << ' ' << j << endl;
          cout << i + x << ' ' << j << endl;
          cout << i << ' ' << j - x << endl;
          cout << i << ' ' << j + x << endl;
          return 0;
        }
      }
    }
  }
  cout << -1 << endl;
  return 0;
}
