#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0, y = 0;
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      char ch;
      cin >> ch;
      if (ch == '*') {
        x ^= i;
        y ^= j;
      }
    }
  }
  cout << x + 1 << " " << y + 1 << endl;
  return 0;
}
