#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  char s[m];
  int x, y, y1, y2;
  for (int i = 0; i < (n); i++) {
    cin >> s;
    int f = 0;
    vector<int> v;
    for (int j = 0; j < m; j++) {
      if (s[j] == '*') {
        f++;
        v.push_back(j);
      }
    }
    if (f == 1) {
      x = i;
      y = v[0];
    }
    if (f == 2) {
      y1 = v[0];
      y2 = v[1];
    }
  }
  if (y == y1) {
    cout << x + 1 << " " << y2 + 1 << endl;
  } else {
    cout << x + 1 << " " << y1 + 1 << endl;
  }
  return 0;
}
