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