#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x1, x2, x3, y1, y2, y3, num = 1;
  cin >> n >> m;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++) {
      char ch;
      cin >> ch;
      if (ch == '*') {
        switch (num) {
          case 1:
            x1 = j, y1 = i;
            break;
          case 2:
            x2 = j, y2 = i;
            break;
          case 3:
            x3 = j, y3 = i;
            break;
        }
        num++;
      }
    }
  if (y1 != y2 && y1 != y3)
    cout << y1;
  else if (y2 != y1 && y2 != y3)
    cout << y2;
  else
    cout << y3;
  cout << " ";
  if (x1 != x2 && x1 != x3)
    cout << x1;
  else if (x2 != x1 && x2 != x3)
    cout << x2;
  else
    cout << x3;
  return 0;
}
