#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, similar;
  char tempV;
  vector<vector<char>> arr;
  vector<vector<int>> dots;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    vector<char> temp;
    for (int j = 0; j < m; j++) {
      cin >> tempV;
      temp.push_back(tempV);
    }
    arr.push_back(temp);
  }
  for (int i = 0; i < arr.size(); i++) {
    for (int j = 0; j < arr[i].size(); j++) {
      if (arr[i][j] == '*') {
        vector<int> temp;
        temp.push_back(i + 1);
        temp.push_back(j + 1);
        dots.push_back(temp);
      }
    }
  }
  if (dots[0][0] == dots[1][0]) {
    if (dots[0][1] == dots[2][1]) {
      cout << dots[2][0] << ' ' << dots[1][1];
    } else {
      cout << dots[2][0] << ' ' << dots[0][1];
    }
  } else {
    if (dots[0][1] == dots[1][1]) {
      cout << dots[0][0] << ' ' << dots[2][1];
    } else {
      cout << dots[0][0] << ' ' << dots[1][1];
    }
  }
  return 0;
}
