#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > v;
int main() {
  int r, c;
  while (cin >> r >> c) {
    v.clear();
    for (int i = 1; i <= r; i++) {
      for (int j = 1; j <= c; j++) {
        char a;
        cin >> a;
        if (a == '*') {
          v.push_back(make_pair(i, j));
        }
      }
    }
    int x = 0, y = 0;
    if (v[0].first == v[1].first)
      x = v[2].first;
    else if (v[0].first == v[2].first)
      x = v[1].first;
    else
      x = v[0].first;
    if (v[0].second == v[1].second)
      y = v[2].second;
    else if (v[0].second == v[2].second)
      y = v[1].second;
    else
      y = v[0].second;
    cout << x << " " << y << endl;
  }
  return 0;
}
