#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, m;
  char k;
  cin >> n >> m;
  int r[3] = {}, c[3] = {}, g = 0, h = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> k;
      if (k == '*') {
        r[g] = i + 1;
        c[h] = j + 1;
        g++;
        h++;
      }
    }
  }
  sort(r, r + 3);
  sort(c, c + 3);
  if (r[0] == r[1])
    cout << r[2] << " ";
  else
    cout << r[0] << " ";
  if (c[0] == c[1])
    cout << c[2];
  else
    cout << c[0];
  return 0;
}
