#include <bits/stdc++.h>
using namespace std;
int n, m;
long k;
bool g[305][305];
bool isStar(int x, int y, int radius) {
  if (!g[x][y]) return 0;
  if (!g[x - radius][y]) return 0;
  if (!g[x + radius][y]) return 0;
  if (!g[x][y - radius]) return 0;
  if (!g[x][y + radius]) return 0;
  return 1;
}
int main() {
  cin >> n >> m;
  cin >> k;
  char temp;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < m; ++j) {
      cin >> temp;
      if (temp == '*')
        g[i][j] = 1;
      else
        g[i][j] = 0;
    }
  }
  int posx, posy, rad;
  for (int radius = 1; (radius <= min(n, m) / 2) && (k > 0); ++radius) {
    for (int x = radius; (x + radius < n) && (k > 0); ++x) {
      for (int y = radius; (y + radius < m) && (k > 0); ++y) {
        if (isStar(x, y, radius)) --k, posx = x, posy = y, rad = radius;
      }
    }
  }
  if (k == 0) {
    cout << posx + 1 << " " << posy + 1 << endl;
    cout << posx - rad + 1 << " " << posy + 1 << endl;
    cout << posx + rad + 1 << " " << posy + 1 << endl;
    cout << posx + 1 << " " << posy - rad + 1 << endl;
    cout << posx + 1 << " " << posy + rad + 1 << endl;
  } else {
    cout << -1 << endl;
  }
  return 0;
}
