#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int n, m;
  int i, j;
  char c1;
  int posx = -1;
  int posy = -1;
  scanf("\n%d %d", &n, &m);
  int matriz[n + 1][m + 1];
  char c;
  for (i = 1; i < (n + 1); i++) {
    scanf("%c", &c);
    for (j = 1; j < (m + 1); j++) {
      scanf("%c", &c1);
      matriz[i][j] = (int)c1;
    }
  }
  int k, l;
  for (i = 1; i < n; i++) {
    for (j = 1; j < m; j++) {
      for (k = i + 1; k <= n; k++) {
        for (l = j + 1; l <= m; l++) {
          if ((matriz[i][j]) == ((int)'.')) {
            if ((matriz[k][j] == ((int)'*')) && (matriz[i][l] == ((int)'*')) &&
                (matriz[k][l] == ((int)'*'))) {
              posx = i;
              posy = j;
              i = n;
              j = m;
              k = i + 1;
              l = j + 1;
            }
          } else if ((matriz[k][j]) == ((int)'.')) {
            if ((matriz[i][j] == ((int)'*')) && (matriz[i][l] == ((int)'*')) &&
                (matriz[k][l] == ((int)'*'))) {
              posx = k;
              posy = j;
              i = n;
              j = m;
              k = i + 1;
              l = j + 1;
            }
          } else if ((matriz[i][l]) == ((int)'.')) {
            if ((matriz[i][j] == ((int)'*')) && (matriz[k][j] == ((int)'*')) &&
                (matriz[k][l] == ((int)'*'))) {
              posx = i;
              posy = l;
              i = n;
              j = m;
              k = i + 1;
              l = j + 1;
            }
          } else if ((matriz[k][l]) == ((int)'.')) {
            if ((matriz[i][j] == ((int)'*')) && (matriz[k][j] == ((int)'*')) &&
                (matriz[i][l] == ((int)'*'))) {
              posx = k;
              posy = l;
              i = n;
              j = m;
              k = i + 1;
              l = j + 1;
            }
          }
        }
      }
    }
  }
  printf("%d %d", posx, posy);
  return 0;
}
