#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int N = 304 * 1;
int n, m, k;
char tab[N][N];
bool is_star(int r, int c, int R) {
  if (tab[r][c] == '*' && tab[r - R][c] == '*' && tab[r + R][c] == '*' &&
      tab[r][c - R] == '*' && tab[r][c + R] == '*')
    return 1;
  else
    return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) cin >> tab[i][j];
  }
  for (int rad = 1; 2 * rad < min(n, m); rad++) {
    for (int r = rad; rad + r < n; r++) {
      for (int c = rad; c + rad < m; c++) {
        if (is_star(r, c, rad)) {
          if (k == 1) {
            cout << r + 1 << ' ' << c + 1 << '\n';
            cout << r - rad + 1 << ' ' << c + 1 << '\n'
                 << r + rad + 1 << ' ' << c + 1 << '\n';
            cout << 1 + r << ' ' << c - rad + 1 << '\n'
                 << 1 + r << ' ' << c + rad + 1 << '\n';
            exit(0);
          } else
            k--;
        }
      }
    }
  }
  cout << -1 << '\n';
}
