#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, m;
  cin >> n >> m;
  map<long long, long long> X, Y;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      char x;
      cin >> x;
      if (x == '*') {
        X[i]++;
        Y[j]++;
      }
    }
  }
  for (auto v : X) {
    if (v.second == 1) {
      cout << v.first + 1 << " ";
    }
  }
  for (auto v : Y) {
    if (v.second == 1) {
      cout << v.first + 1 << " ";
    }
  }
}
