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