#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n, r[3], k[3], o, p, l = 0;
  cin >> n >> m;
  char a[101][1011];
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> a[i][j];
      if (a[i][j] == '*') {
        r[l] = i;
        k[l] = j;
        l++;
      }
    }
  }
  for (int i = 0; i < 3; i++) {
    if (r[0] == r[1])
      p = r[2];
    else if (r[0] == r[2])
      p = r[1];
    else
      p = r[0];
    if (k[0] == k[1])
      o = k[2];
    else if (k[0] == k[2])
      o = k[1];
    else
      o = k[0];
  }
  cout << p << "  " << o;
}
