#include <bits/stdc++.h>
using namespace std;
int n, m, k, cnt = 0;
char s[301][301];
int main() {
  scanf("%d %d %d", &n, &m, &k);
  for (int i = 1; i <= n; i++) {
    scanf("%c", &s[i][0]);
    for (int j = 1; j <= m; j++) scanf("%c", &s[i][j]);
  }
  for (int x = 1; x <= 150; x++)
    for (int i = x + 1; i <= n - x; i++)
      for (int j = x + 1; j <= m - x; j++) {
        if (s[i][j] == '*' && s[i - x][j] == '*' && s[i + x][j] == '*' &&
            s[i][j - x] == '*' && s[i][j + x] == '*')
          cnt++;
        if (cnt == k) {
          printf("%d %d\n", i, j);
          printf("%d %d\n", i - x, j);
          printf("%d %d\n", i + x, j);
          printf("%d %d\n", i, j - x);
          printf("%d %d\n", i, j + x);
          return 0;
        }
      }
  printf("-1");
  return 0;
}
