#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
  int a, b;
  cin >> a >> b;
  char c[a][b];
  int v[3], d[3], l = 0;
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < b; j++) {
      cin >> c[i][j];
      if (c[i][j] == '*') {
        v[l] = i + 1;
        d[l] = j + 1;
        l++;
      }
    }
  }
  sort(v, v + 3);
  sort(d, d + 3);
  if (v[0] == v[1])
    cout << v[2] << ' ';
  else
    cout << v[0] << ' ';
  if (d[0] == d[1])
    cout << d[2];
  else
    cout << d[0];
  return 0;
}
