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