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