#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string ch;
  int a[6], k = 0, l = 0;
  int str = -1, stlb = -1, sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> ch;
    sum = 0;
    for (int j = 0; j < m; j++) {
      if (ch[j] == '*') {
        a[k] = i;
        k++;
        a[k] = j;
        k++;
        sum++;
      }
    }
    if (sum == 1) str = i;
  }
  cout << str + 1 << " ";
  sort(a, a + 6);
  for (int i = 0; i < 6; i++) {
    if (a[i] == a[i + 1])
      i++;
    else {
      if (a[i] != str) {
        cout << a[i] + 1;
        return 0;
      }
    }
  }
  cout << str + 1;
}
