#include <bits/stdc++.h>
using namespace std;
map<long long, int> mp;
set<long long> s;
int main(void) {
  int n, m;
  cin >> n >> m;
  string arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    int cont = 0;
    for (int j = 0; j < m; j++) {
      if (arr[i][j] == '*') cont++;
    }
    if (cont == 1) {
      cout << i + 1 << " ";
      break;
    }
  }
  for (int i = 0; i < m; i++) {
    int cont = 0;
    for (int j = 0; j < n; j++) {
      if (arr[j][i] == '*') cont++;
    }
    if (cont == 1) {
      cout << i + 1 << endl;
      break;
    }
  }
  return 0;
}
