#include <bits/stdc++.h>
int main() {
  int n, m, I, J, aux[3][2], a = 0, X, Y;
  scanf("%d%d", &n, &m);
  char mat[n][m];
  for (I = 0; I < n; I++) {
    for (J = 0; J < m; J++) {
      scanf(" %c", &mat[I][J]);
      if (mat[I][J] == '*') {
        aux[a][0] = I;
        aux[a][1] = J;
        a++;
      }
    }
  }
  if (aux[0][0] != aux[1][0] && aux[1][0] == aux[2][0]) {
    X = aux[0][0];
  } else if (aux[0][0] != aux[2][0] && aux[0][0] == aux[1][0]) {
    X = aux[2][0];
  } else if (aux[1][0] != aux[2][0] && aux[0][0] == aux[2][0]) {
    X = aux[1][0];
  }
  if (aux[0][1] != aux[1][1] && aux[1][1] == aux[2][1]) {
    Y = aux[0][1];
  } else if (aux[0][1] != aux[2][1] && aux[0][1] == aux[1][1]) {
    Y = aux[2][1];
  } else if (aux[1][1] != aux[2][1] && aux[0][1] == aux[2][1]) {
    Y = aux[1][1];
  }
  printf("%d %d", X + 1, Y + 1);
}
