#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
void RAmadAN() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
long long gcd(long long a, long long b) { return a ? gcd(b % a, a) : b; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
long long fact(long long n) {
  long long f = 1;
  for (int i = 2; i <= n; i++) {
    f *= i;
  }
  return f;
}
long long ncr(long long n, long long r) {
  return fact(n) / (fact(r) * fact(n - r));
}
long long npr(long long n, long long r) { return fact(n) / fact(n - r); }
int dx_r[] = {1, 0, -1, 0, -1, 1, -1, 1};
int dy_c[] = {0, 1, 0, -1, -1, 1, 1, -1};
int main() {
  RAmadAN();
  int n, m;
  cin >> n >> m;
  char x;
  int c = 0, d = 0;
  multiset<int> a, b;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> x;
      if (x == '*') {
        a.insert(i);
        c = max(c, i);
        b.insert(j);
        d = max(d, j);
      }
    }
  }
  for (int i = 1; i <= c; i++) {
    if (a.count(i) == 1) {
      cout << i;
    }
  }
  cout << " ";
  for (int i = 1; i <= d; i++) {
    if (b.count(i) == 1) {
      cout << i;
    }
  }
  return 0;
}
