#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100;
string s[MAX_N];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  int x1 = 0, x2 = 0, x3 = 0, y1 = 0, y2 = 0, y3 = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (s[i][j] == '*') {
        if (x1 == 0) {
          x1 = i + 1;
        } else if (x2 == 0) {
          x2 = i + 1;
        } else {
          x3 = i + 1;
        }
        if (y1 == 0) {
          y1 = j + 1;
        } else if (y2 == 0) {
          y2 = j + 1;
        } else {
          y3 = j + 1;
        }
      }
    }
  }
  cerr << x1 << " " << y1 << endl;
  cerr << x2 << " " << y2 << endl;
  cerr << x3 << " " << y3 << endl;
  int ansx, ansy;
  if (x1 != x2) {
    if (x1 == x3) {
      ansx = x2;
    } else {
      ansx = x1;
    }
  } else {
    ansx = x3;
  }
  if (y1 != y2) {
    if (y1 == y3) {
      ansy = y2;
    } else {
      ansy = y1;
    }
  } else {
    ansy = y3;
  }
  cout << ansx << " " << ansy;
}
