#include <bits/stdc++.h>
using namespace std;
int solve(int a, int b, int c) {
  if (a == b) {
    return c;
  }
  if (a == c) {
    return b;
  }
  return a;
}
int main() {
  int m, n;
  cin >> m >> n;
  vector<pair<int, int> > a;
  for (int i = 0; i < m; i++) {
    string s;
    cin >> s;
    for (int j = 0; j < n; j++) {
      if (s[j] == '*') {
        a.push_back(make_pair(i + 1, j + 1));
      }
    }
  }
  cout << solve(a[0].first, a[1].first, a[2].first) << " "
       << solve(a[0].second, a[1].second, a[2].second);
  return 0;
}
