#include <bits/stdc++.h>
using namespace std;
const int N = 0xFF;
struct Point {
  int x, y;
  Point(int _x = 0, int _y = 0) : x(_x), y(_y) {}
} pt[4];
char buf[N];
int main() {
  int n, m, p = 0;
  scanf("%d%d", &n, &m);
  getchar();
  for (int i = 1; i <= n; i++) {
    gets(buf + 1);
    for (int j = 1; j <= m; j++)
      if (buf[j] == '*') pt[p++] = Point(i, j);
  }
  if (pt[0].x == pt[1].x)
    pt[3] = Point(pt[2].x, pt[0].y + pt[1].y - pt[2].y);
  else
    pt[3] = Point(pt[0].x, pt[1].y + pt[2].y - pt[0].y);
  printf("%d %d\n", pt[3].x, pt[3].y);
  return 0;
}
