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