#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using lli = long long int;
using ld = long double;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  char s[1000][1000];
  ll n, m;
  cin >> n >> m;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> s[i][j];
      if (s[i][j] == '*') {
        v.push_back(i + 1);
        v.push_back(j + 1);
      }
    }
  }
  if (true) {
    if (v[0] == v[2]) {
      cout << v[4] << " ";
    } else if (v[0] == v[4]) {
      cout << v[2] << " ";
    } else {
      cout << v[0] << " ";
    }
  }
  if (true) {
    if (v[1] == v[3]) {
      cout << v[5] << "\n";
    } else if (v[1] == v[5]) {
      cout << v[3] << "\n";
    } else {
      cout << v[1] << "\n";
    }
  }
  return 0;
}
