#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100 + 2;
int main() {
  int n, m;
  cin >> n >> m;
  int ind = 0;
  int x[3], y[3];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      char s;
      cin >> s;
      if (s == '*') {
        x[ind] = i;
        y[ind] = j;
        ind++;
      }
    }
  }
  int a, b;
  if (x[0] == x[1]) {
    a = x[2];
  } else if (x[0] == x[2]) {
    a = x[1];
  } else {
    a = x[0];
  }
  if (y[0] == y[1]) {
    b = y[2];
  } else if (y[0] == y[2]) {
    b = y[1];
  } else {
    b = y[0];
  }
  cout << a + 1 << ' ' << b + 1;
}
