#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<vector<char>> a(n);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      char tmp;
      cin >> tmp;
      a[i].push_back(tmp);
    }
  }
  vector<pair<int, int>> b;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (a[i][j] == '*') {
        b.push_back(make_pair(i + 1, j + 1));
      }
    }
  }
  if (b[0].first == b[1].first) {
    if (b[1].second == b[2].second) {
      cout << b[2].first << " " << b[0].second;
    } else if (b[0].second == b[2].second) {
      cout << b[2].first << " " << b[1].second;
    }
  } else if (b[0].first == b[2].first) {
    if (b[2].second == b[1].second) {
      cout << b[1].first << " " << b[0].second;
    } else if (b[0].second == b[1].second)
      cout << b[1].first << " " << b[2].second;
  } else if (b[1].first == b[2].first) {
    if (b[2].second == b[0].second) {
      cout << b[0].first << " " << b[1].second;
    } else if (b[0].second == b[1].second)
      cout << b[0].first << " " << b[2].second;
  }
  return 0;
}
