#include <bits/stdc++.h>
typedef struct zuobiao {
  int xxxxxxxxxxx;
  int y;
} zuobiao;
zuobiao dian(int a, int b, int c, int d, int e, int f) {
  zuobiao zb;
  zb.xxxxxxxxxxx = a + e - c;
  zb.y = b + f - d;
  return zb;
}
int main() {
  zuobiao zb;
  int n, m;
  scanf("%d %d", &n, &m);
  getchar();
  char a[101][101] = {'\0'};
  int b[3][2] = {0};
  int i, j, k = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j < m; j++) {
      scanf("%c", &a[i][j]);
      if (a[i][j] == '*') {
        b[k][0] = i + 1;
        b[k][1] = j + 1;
        k++;
      }
    }
    getchar();
  }
  if ((b[0][0] - b[1][0]) * (b[1][0] - b[2][0]) +
          (b[0][1] - b[1][1]) * (b[1][1] - b[2][1]) ==
      0) {
    zb = dian(b[0][0], b[0][1], b[1][0], b[1][1], b[2][0], b[2][1]);
  }
  if ((b[0][0] - b[2][0]) * (b[1][0] - b[2][0]) +
          (b[0][1] - b[2][1]) * (b[1][1] - b[2][1]) ==
      0) {
    zb = dian(b[0][0], b[0][1], b[2][0], b[2][1], b[1][0], b[1][1]);
  }
  if ((b[0][0] - b[2][0]) * (b[1][0] - b[0][0]) +
          (b[0][1] - b[2][1]) * (b[1][1] - b[0][1]) ==
      0) {
    zb = dian(b[2][0], b[2][1], b[0][0], b[0][1], b[1][0], b[1][1]);
  }
  printf("%d %d\n", zb.xxxxxxxxxxx, zb.y);
  return 0;
}
