#include <bits/stdc++.h>
using namespace std;
const int n = 1e6 + 100;
const int infi = 1e9;
int dx[] = {-1, 1, 0, 0, -1, -1, 1, 1};
int dy[] = {0, 0, -1, 1, -1, 1, -1, 1};
int kx[] = {1, 1, 2, 2, -1, -1, -2, -2};
int ky[] = {2, -2, 1, -1, 2, -2, 1, -1};
vector<pair<int, int>> v;
int main() {
  int row, culom;
  cin >> row >> culom;
  for (int i = 0; i < row; i++) {
    for (int j = 0; j < culom; j++) {
      char c;
      cin >> c;
      if (c == '*') {
        v.push_back({i, j});
      }
    }
  }
  if (v[0].first == v[1].first) {
    int dis = abs(v[0].second - v[1].second);
    if (v[1].second == v[2].second)
      cout << v[2].first + 1 << ' ' << v[2].second + 1 - dis << endl;
    else
      cout << v[2].first + 1 << ' ' << v[2].second + dis + 1 << endl;
  } else {
    int dis = abs(v[1].second - v[2].second);
    if (v[2].second == v[0].second)
      cout << v[0].first + 1 << ' ' << v[0].second + 1 - dis << endl;
    else
      cout << v[0].first + 1 << ' ' << v[0].second + dis + 1 << endl;
  }
}
