#include <bits/stdc++.h>
using namespace std;
void up(int x1, int y1, int x2, int y2, int x3, int y3) {
  if ((x1 == x2) && (y1 == y3))
    cout << x3 << " " << y2 << endl;
  else
    cout << x2 << " " << y3 << endl;
}
int main() {
  int n, m, x1, x2, x3, y1, y2, y3;
  string s;
  scanf("%d%d", &n, &m);
  getline(cin, s);
  x1 = x2 = x3 = y1 = y2 = y3 = 0;
  for (int i = int(1); i <= int(n); ++i) {
    getline(cin, s);
    for (int j = int(0); j <= int(m - 1); ++j)
      if (s[j] == '*')
        if (x1 == 0) {
          x1 = i;
          y1 = j + 1;
        } else if (x2 == 0) {
          x2 = i;
          y2 = j + 1;
        } else {
          x3 = i;
          y3 = j + 1;
        }
  }
  if (((x1 == x2) && (y1 == y3)) || ((x1 == x3) && (y1 == y2)))
    up(x1, y1, x2, y2, x3, y3);
  else if (((x2 == x1) && (y2 == y3)) || ((x2 == x3) && (y2 == y1)))
    up(x2, y2, x1, y1, x3, y3);
  else
    up(x3, y3, x1, y1, x2, y2);
  return 0;
}
