#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, c = 0;
  cin >> n >> m;
  int a[3], b[3];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      char ch;
      cin >> ch;
      if (ch == '*') {
        a[c] = i;
        b[c] = j;
        c++;
      }
    }
  }
  sort(a, a + 3);
  sort(b, b + 3);
  cout << (abs(abs(a[0] - a[1]) - a[2]) + 1) << " "
       << (abs(abs(b[0] - b[1]) - b[2]) + 1);
}
