#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[101][101];
  int i, j, m, n, r[3], c[3], r4 = 1, c4 = 1, k;
  char temp;
  cin >> m >> n;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      cin >> str[i][j];
    }
    cin.ignore();
  }
  for (i = 0, k = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      if (str[i][j] == '*') {
        r[k] = i + 1;
        c[k] = j + 1;
        k++;
      }
    }
  }
  r4 = r[0] ^ r[1] ^ r[2];
  c4 = c[0] ^ c[1] ^ c[2];
  cout << r4 << " " << c4;
}
