#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
const int mod = 1e9 + 7;
char a[305][305];
int main() {
  ios_base::sync_with_stdio(0);
  int n, m, k;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) {
      cin >> a[i][j];
    }
  for (int x = 1; x < n; x++)
    for (int i = x; i < n - x; i++)
      for (int j = x; j < m - x; j++)
        if (a[i][j] == '*') {
          if (a[i + x][j] == '*' && a[i - x][j] == '*' && a[i][j - x] == '*' &&
              a[i][j + x] == '*') {
            k--;
            if (k == 0) {
              cout << i + 1 << " " << j + 1 << endl;
              cout << i - x + 1 << " " << j + 1 << endl;
              cout << i + x + 1 << " " << j + 1 << endl;
              cout << i + 1 << " " << j - x + 1 << endl;
              cout << i + 1 << " " << j + x + 1 << endl;
              return 0;
            }
          }
        }
  cout << -1 << endl;
}
