#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
inline int check(const pii &a, const pii &b, const pii &c) {
  if (a.first == b.first && a.second == c.second)
    return 1;
  else if (a.first == c.first && a.second == b.second)
    return 2;
  else
    return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  pii p[3];
  int num = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < m; ++j) {
      char tmp;
      cin >> tmp;
      if (tmp == '*') {
        p[num++] = {i, j};
      }
    }
  }
  pii ans;
  for (int i = 0; i < 3; ++i) {
    if (int no = check(p[i], p[(i + 1) % 3], p[(i + 2) % 3])) {
      if (no == 1) {
        ans.second = p[(i + 1) % 3].second;
        ans.first = p[(i + 2) % 3].first;
      }
      if (no == 2) {
        ans.first = p[(i + 1) % 3].first;
        ans.second = p[(i + 2) % 3].second;
      }
    }
  }
  cout << ans.first + 1 << " " << ans.second + 1 << endl;
  return 0;
}
