#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, m;
  cin >> n >> m;
  vector<string> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<pair<int, int>> p;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (a[i][j] == '*') {
        p.push_back({i, j});
      }
    }
  }
  if (a[p[0].first][p[1].second] != '*') {
    cout << p[0].first + 1 << " " << p[1].second + 1;
  } else if (a[p[0].first][p[2].second] != '*') {
    cout << p[0].first + 1 << " " << p[2].second + 1;
  } else if (a[p[2].first][p[0].second] != '*') {
    cout << p[2].first + 1 << " " << p[0].second + 1;
  } else if (a[p[2].first][p[1].second] != '*') {
    cout << p[2].first + 1 << " " << p[1].second + 1;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return 0;
}
