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