#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[5], y[5], n, m, c = 1, k, l, i, j;
  cin >> n >> m;
  string s;
  for (i = 1; i <= n; i++) {
    cin >> s;
    for (j = 0; j < m; j++) {
      if (s[j] == '*') {
        x[c] = i;
        y[c] = j + 1;
        c++;
      }
    }
  }
  if (x[1] != x[2] && x[1] != x[3]) {
    k = x[1];
  } else if (x[2] != x[1] && x[2] != x[3]) {
    k = x[2];
  } else
    k = x[3];
  if (y[1] != y[2] && y[1] != y[3]) {
    l = y[1];
  } else if (y[2] != y[1] && y[2] != y[3]) {
    l = y[2];
  } else
    l = y[3];
  cout << k << " " << l << endl;
  return 0;
}
