#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int p1 = 0, p2 = 0, q1 = 0, q2 = 0, r1 = 0, r2 = 0, f = 1;
  int n, m, k = 0;
  char c;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> c;
      if (c == '*') {
        if (f == 1) {
          p1 = i;
          p2 = j;
          f = 2;
        } else if (f == 2) {
          q1 = i;
          q2 = j;
          f = 3;
        } else if (f == 3) {
          r1 = i;
          r2 = j;
          f = 0;
        }
      }
    }
  }
  if (p1 == q1) {
    if (p2 == r2) {
      cout << r1 << " " << q2 << endl;
    } else if (q2 == r2) {
      cout << r1 << " " << p2 << endl;
    }
  } else if (q1 == r1) {
    if (p2 == r2) {
      cout << p1 << " " << q2 << endl;
    } else if (p2 == q2) {
      cout << p1 << " " << r2 << endl;
    }
  }
  return 0;
}
