#include <bits/stdc++.h>
using namespace std;
bool g[305][305] = {0};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, m, k, i, j, r, x, c = 0;
  char ch;
  cin >> n >> m >> k;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= m; j++) {
      cin >> ch;
      if (ch == '*')
        g[i][j] = 1;
      else
        g[i][j] = 0;
    }
  }
  r = min(n, m) / 2;
  for (x = 1; x <= r; x++) {
    for (i = x + 1; i <= n - x; i++) {
      for (j = x + 1; j <= m - x; j++) {
        if (g[i][j] && g[i - x][j] && g[i + x][j] && g[i][j - x] &&
            g[i][j + x]) {
          c++;
          if (c == k) {
            cout << i << " " << j << "\n"
                 << i - x << " " << j << "\n"
                 << i + x << " " << j << "\n"
                 << i << " " << j - x << "\n"
                 << i << " " << j + x;
            return 0;
          }
        }
      }
    }
  }
  cout << -1;
  return 0;
}
