#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, t = 0, i, j, r, c;
  cin >> n >> m;
  char a[n][m];
  for (i = 0; i < n; i++) {
    t = 0;
    for (j = 0; j < m; j++) {
      cin >> a[i][j];
      if (a[i][j] == '*') {
        t++;
      }
    }
    if (t == 1) {
      r = i + 1;
    }
  }
  for (i = 0; i < m; i++) {
    t = 0;
    for (j = 0; j < n; j++) {
      if (a[j][i] == '*') {
        t++;
      }
    }
    if (t == 1) {
      c = i + 1;
    }
  }
  cout << r << " " << c;
}
