#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  char field[n][m];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> field[i][j];
    }
  }
  vector<int> iIndexes;
  vector<int> jIndexes;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (field[i][j] == '*') {
        int aika = i + 1;
        int jaika = j + 1;
        iIndexes.push_back(aika);
        jIndexes.push_back(jaika);
      }
    }
  }
  sort(iIndexes.begin(), iIndexes.end());
  sort(jIndexes.begin(), jIndexes.end());
  if (iIndexes[0] == iIndexes[1]) {
    cout << iIndexes[2] << " ";
  }
  if (iIndexes[1] == iIndexes[2]) {
    cout << iIndexes[0] << " ";
  }
  if (jIndexes[0] == jIndexes[1]) {
    cout << jIndexes[2] << endl;
  }
  if (jIndexes[1] == jIndexes[2]) {
    cout << jIndexes[0] << endl;
  }
}
