#include <bits/stdc++.h>
using namespace std;
int n, m, v;
pair<int, int> p[10];
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; ++i) {
    scanf("\n");
    for (int j = 1; j <= m; ++j) {
      char ch = getchar();
      if (ch == '*') p[++v] = make_pair(i, j);
    }
  }
  if (p[1].first == p[2].first && p[1].second == p[3].second)
    printf("%d %d", p[3].first, p[2].second);
  else if (p[1].first == p[3].first && p[1].second == p[2].second)
    printf("%d %d", p[2].first, p[3].second);
  else if (p[2].first == p[1].first && p[2].second == p[3].second)
    printf("%d %d", p[3].first, p[1].second);
  else if (p[2].first == p[3].first && p[2].second == p[1].second)
    printf("%d %d", p[1].first, p[3].second);
  else if (p[3].first == p[1].first && p[3].second == p[2].second)
    printf("%d %d", p[2].first, p[1].second);
  else if (p[3].first == p[2].first && p[3].second == p[1].second)
    printf("%d %d", p[1].first, p[2].second);
  return 0;
}
