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