#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  char c;
  map<int, int> x, y;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> c;
      if (c == '*') {
        x[i]++;
        y[j]++;
      }
    }
  }
  map<int, int>::iterator p;
  p = x.begin();
  while (p != x.end()) {
    if (p->second % 2) cout << p->first + 1 << " ";
    p++;
  }
  p = y.begin();
  while (p != y.end()) {
    if (p->second % 2) cout << p->first + 1;
    p++;
  }
}
