#include <bits/stdc++.h>
double eps = 1e-9;
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int n, m, k;
  cin >> n >> m >> k;
  string arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int counts = 0;
  for (int x = 1; x < 301; x++) {
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (arr[i][j] == '*') {
          bool flag = true, flag1 = true;
          ;
          if (i - x > -1) {
            if (arr[i - x][j] != '*') {
              flag = false;
            }
          } else {
            flag1 = false;
          }
          if (i + x < n && flag1) {
            if (arr[i + x][j] != '*') {
              flag = false;
            }
          } else {
            flag1 = false;
          }
          if (j - x > -1 && flag1) {
            if (arr[i][j - x] != '*') {
              flag = false;
            }
          } else {
            flag1 = false;
          }
          if (j + x < m && flag1) {
            if (arr[i][j + x] != '*') {
              flag = false;
            }
          } else {
            flag1 = false;
          }
          if (flag && flag1) {
            counts++;
            if (counts == k) {
              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;
  return 0;
}
