#include <bits/stdc++.h>
using namespace std;
vector<int> q, d, di, jr;
int main() {
  int a, b, c, d, i, j, n, m, x[4], y[4];
  char ch;
  cin >> n >> m;
  c = 0;
  for (i = 0; i < n; i++)
    for (j = 0; j < m; j++) {
      cin >> ch;
      if (ch == '*') x[c] = i, y[c++] = j;
    }
  for (i = 0; i < 3; i++)
    for (j = i; j < 3; j++) {
      if (x[i] > x[j]) {
        swap(x[i], x[j]);
        swap(y[i], y[j]);
      }
      if (x[i] == x[j] && y[i] > y[j]) {
        swap(x[i], x[j]);
        swap(y[i], y[j]);
      }
    }
  if (x[0] == x[1]) {
    if (y[0] == y[2]) {
      cout << x[2] + 1 << " " << y[1] + 1 << endl;
    } else {
      cout << x[2] + 1 << " " << y[0] + 1 << endl;
    }
  } else if (x[1] == x[2]) {
    if (y[1] == y[0]) {
      cout << x[0] + 1 << " " << y[2] + 1 << endl;
    } else {
      cout << x[0] + 1 << " " << y[1] + 1 << endl;
    }
  }
  return 0;
}
