#include <bits/stdc++.h>
using namespace std;
string str;
vector<string> a;
long long sum[301];
int n, m, k, i, j;
int main() {
  scanf("%d %d %d", &n, &m, &k);
  for (i = 0; i < n; i++) {
    cin >> str;
    a.push_back(str);
  }
  for (i = 0; i < n; i++)
    for (j = 0; j < m; j++)
      if (a[i][j] == '*') {
        int count = 0;
        while (true) {
          count++;
          if (i - count >= 0 && j - count >= 0 && i + count < n &&
              j + count < m) {
            if (a[i + count][j] == '*' && a[i - count][j] == '*' &&
                a[i][j + count] == '*' && a[i][j - count] == '*') {
              sum[count]++;
            }
          } else
            break;
        }
      }
  int cur = 0, pre = 0;
  int rad = 0, number = 0;
  for (i = 1; i < max(n, m); i++) {
    cur += sum[i];
    if (cur >= k) {
      rad = i;
      number = cur - k;
      number = sum[i] - number;
      break;
    }
    pre = cur;
  }
  if (rad == 0) {
    cout << -1;
    return 0;
  }
  int col = 0;
  for (i = 0; i < n; i++)
    for (j = 0; j < m; j++) {
      if (a[i][j] == '*') {
        if (i - rad >= 0 && j - rad >= 0 && i + rad < n && j + rad < m) {
          if (a[i + rad][j] == '*' && a[i - rad][j] == '*' &&
              a[i][j + rad] == '*' && a[i][j - rad] == '*') {
            col++;
          }
        }
        if (col == number) {
          cout << i + 1 << " " << j + 1 << endl;
          cout << i + 1 - rad << " " << j + 1 << endl;
          cout << i + 1 + rad << " " << j + 1 << endl;
          cout << i + 1 << " " << j + 1 - rad << endl;
          cout << i + 1 << " " << j + 1 + rad << endl;
          return 0;
        }
      }
    }
  return 0;
}
