#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
};
long double dist(point a, point b) {
  return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
int main() {
  int N, M;
  cin >> N >> M;
  vector<point> ver;
  for (int i = 0; i != N; i++) {
    char t;
    for (int j = 0; j != M; j++) {
      cin >> t;
      if (t == '*') {
        point temp;
        temp.x = (j + 1) * 100;
        temp.y = (i + 1) * 100;
        ver.push_back(temp);
      }
    }
  }
  vector<point> verres(3);
  int d1 = dist(ver[0], ver[1]), d2 = dist(ver[0], ver[2]),
      d3 = dist(ver[1], ver[2]);
  if (d1 + d2 == d3) {
    verres[0] = ver[1];
    verres[2] = ver[2];
    verres[1] = ver[0];
  } else {
    verres[0] = ver[0];
    if (d1 > d2) {
      verres[2] = ver[1];
      verres[1] = ver[2];
    } else {
      verres[2] = ver[2];
      verres[1] = ver[1];
    }
  }
  point res, cen;
  cen.x = abs(verres[0].x + verres[2].x) / 2;
  cen.y = abs(verres[0].y + verres[2].y) / 2;
  res.x = cen.x + (cen.x - verres[1].x);
  res.y = cen.y + (cen.y - verres[1].y);
  cout << res.y / 100 << " " << res.x / 100;
  return 0;
}
