#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long a = 0, b = 1;
  char c = getchar();
  while (c > '9' || c < '0') {
    if (c == '-') b = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') a = a * 10 + c - 48, c = getchar();
  return a * b;
}
int main() {
  int n = read(), m = read(), 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 ^= i, y ^= j;
    }
  }
  cout << x << ' ' << y;
  return 0;
}
