#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  char arr[a][b];
  int num[6] = {0};
  int k = 0;
  for (int i = 0; i <= a - 1; i++) {
    for (int j = 0; j <= b - 1; j++) {
      cin >> arr[i][j];
      if (arr[i][j] == '*') {
        num[k] = i + 1;
        num[k + 1] = j + 1;
        k = k + 2;
      }
    }
  }
  if ((num[2] == num[4]) && (num[1] == num[5])) {
    cout << num[0] << " " << num[1] + num[3] - num[5];
  }
  if ((num[2] == num[4]) && (num[1] == num[3])) {
    cout << num[0] << " " << num[1] + num[5] - num[3];
  }
  if ((num[0] == num[2]) && (num[3] == num[5])) {
    cout << num[4] << " " << num[5] + num[1] - num[3];
  }
  if ((num[0] == num[2]) && (num[1] == num[5])) {
    cout << num[4] << " " << num[3] + num[5] - num[1];
  }
  cout << endl;
  return 0;
}
