#include <bits/stdc++.h>
const long long mod = 1000000007;
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  char a[n][m];
  map<int, int> ma;
  map<int, int> na;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> a[i][j];
      if (a[i][j] == '*') {
        ma[i + 1]++;
        na[j + 1]++;
      }
    }
  }
  for (auto x : ma) {
    if (x.second == 1) {
      cout << x.first << " ";
    }
  }
  for (auto x : na) {
    if (x.second == 1) {
      cout << x.first << " ";
    }
  }
}
