#include <bits/stdc++.h>
int main() {
  int m, n;
  int mas[6];
  int i = 0;
  scanf("%d %d\n", &n, &m);
  char c;
  for (int j = 0; j < n; j++) {
    for (int k = 0; k < m; k++) {
      scanf("%c", &c);
      if (c == '*') {
        mas[i++] = k;
        mas[i++] = j;
      }
    }
    scanf("\n");
  }
  int x1 = mas[0];
  int y1 = mas[1];
  int x2 = mas[2];
  int y2 = mas[3];
  int x3 = mas[4];
  int y3 = mas[5];
  int x, y;
  if (x1 == x2) x = x3 + 1;
  if (x1 == x3) x = x2 + 1;
  if (x3 == x2) x = x1 + 1;
  if (y1 == y2) y = y3 + 1;
  if (y1 == y3) y = y2 + 1;
  if (y3 == y2) y = y1 + 1;
  printf("%d %d", y, x);
  return 0;
}
