#include <bits/stdc++.h>
using namespace std;
long long n, m, k, l, o, j, p, q, we;
string s[1000000];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> s[i];
  }
  for (int i = 1; i <= n; i++) {
    l = 0;
    for (int q = 0; q < s[i].size(); q++) {
      if (s[i][q] == '*') {
        l++;
      }
    }
    if (l == 2) {
      we = i;
      break;
    }
  }
  long long wer, rew;
  long long r;
  p = s[we].find("*");
  r = s[we].rfind("*");
  long long e = 0;
  long long t = 0;
  long long ee = 0, f = 0;
  for (int i = 1; i <= n; i++) {
    f = 0;
    for (int e = 0; e <= s[i].size(); e++) {
      if (s[i][e] == '*') {
        f++;
      }
    }
    if (f == 1) {
      ee = i;
    }
  }
  long long op = s[ee].find("*");
  p++;
  r++;
  op++;
  if (r == op) {
    cout << ee << ' ' << p << '\n';
  }
  if (p == op) {
    cout << ee << ' ' << r << '\n';
  }
}
