#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cin >> x >> y;
  vector<pair<int, int>> v;
  string s[200];
  for (int i = 0; i < x; i++) {
    cin >> s[i];
  }
  for (int i = 0; i < x; i++) {
    for (int j = 0; j < y; j++) {
      if (s[i][j] == '*') {
        v.push_back(make_pair(i, j));
      }
    }
  }
  int y1, y2, x1, x2;
  y1 = v[0].first;
  if (v[0].first == v[1].first) {
    y2 = v[2].first;
  } else {
    y2 = v[1].first;
  }
  x1 = v[0].second;
  x2 = v[1].second == v[0].second ? v[2].second : v[1].second;
  int y3 = (y1 + y2) * 2 - (v[0].first + v[1].first + v[2].first);
  int x3 = (x1 + x2) * 2 - (v[0].second + v[1].second + v[2].second);
  cout << y3 + 1 << " " << x3 + 1;
  return 0;
}
