#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > v;
int main() {
  long long n, m, a, b, c, d, e, f, cnt = 1;
  cin >> n >> m;
  char ch;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> ch;
      if (ch == '*') {
        if (cnt == 1) {
          a = i;
          b = j;
          cnt++;
        } else if (cnt == 2) {
          c = i;
          d = j;
          cnt++;
        } else if (cnt == 3) {
          e = i;
          f = j;
          cnt++;
        }
      }
    }
  }
  if (a == c) {
    cout << e << " ";
    if (f == d)
      cout << b;
    else
      cout << d;
    return 0;
  }
  if (a == e) {
    cout << c << " ";
    if (d == f)
      cout << b;
    else
      cout << f;
    return 0;
  }
  if (c == e) {
    cout << a << " ";
    if (b == f)
      cout << d;
    else
      cout << f;
    return 0;
  }
}
