#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
int main() {
  int n, m;
  cin >> n >> m;
  vector<pii> v;
  for (int y = 0; y < n; y++) {
    string w;
    cin >> w;
    int from = 0;
    for (int x = 0; x < w.size(); x++) {
      if (w.at(x) == '*') {
        v.push_back({x, y});
      }
    }
  }
  map<int, int> mem;
  map<int, int> mem2;
  for (auto& i : v) {
    if (mem.find(i.first) == mem.end()) {
      mem[i.first] = 1;
    } else {
      mem[i.first]++;
    }
    if (mem2.find(i.second) == mem2.end()) {
      mem2[i.second] = 1;
    } else {
      mem2[i.second]++;
    }
  }
  for (auto& i : mem2) {
    if (mem2[i.first] == 1) {
      cout << i.first + 1 << " ";
    }
  }
  for (auto& i : mem) {
    if (mem[i.first] == 1) {
      cout << i.first + 1 << endl;
    }
  }
  return 0;
}
