#include <bits/stdc++.h>
int main() {
  int i, j, k, n, m;
  scanf("%d%d", &n, &m);
  char a[n][m];
  int b[10000] = {0}, c[10000] = {0};
  for (i = 0; i < n; i++) scanf("%s", a[i]);
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      if (a[i][j] == '*') {
        b[i]++;
        c[j]++;
      }
    }
  }
  for (i = 0; i < n; i++) {
    if (b[i] > 0 && b[i] != 2) printf("%d ", i + 1);
  }
  for (j = 0; j < m; j++) {
    if (c[j] > 0 && c[j] != 2) printf("%d", j + 1);
  }
  return 0;
}
