#include <bits/stdc++.h>
using namespace std;
const int maxn = 105;
int r[maxn], c[maxn];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    for (int j = 0; j < m; j++) {
      if (s[j] == '*') {
        r[i]++;
        c[j]++;
      }
    }
  }
  int x, y;
  for (int i = 0; i < n; i++)
    if (r[i] == 1) x = i + 1;
  for (int i = 0; i < m; i++)
    if (c[i] == 1) y = i + 1;
  cout << x << endl << y << endl;
}
