#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  string s[n];
  long long a, b;
  for (long long i = 0; i < n; i++) {
    cin >> s[i];
    long long f = 0;
    for (long long j = 0; j < m; j++) {
      if (s[i][j] == '*') {
        f++;
      }
    }
    if (f == 1) {
      a = i;
    } else if (f == 2) {
      b = i;
    }
  }
  long long a1 = 0, a2, a3;
  for (long long i = 0; i < m; i++) {
    if (s[b][i] == '*' && s[a][i] == '.') {
      a2 = i;
    }
  }
  cout << a + 1 << " " << a2 + 1;
  return 0;
}
