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