#include <bits/stdc++.h>
using namespace std;
const int64_t N = 1e6 + 10;
string second;
int64_t X, Y, n, m;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  for (int64_t i = 0; i < n; i++) {
    cin >> second;
    for (int64_t j = 0; j < second.size(); j++)
      if (second[j] == '*') X ^= j, Y ^= i;
  }
  cout << Y + 1 << ' ' << X + 1;
  return -0;
}
