#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int coloums[3], rows[3], cc = 0, cr = 0;
  string z[1000];
  for (int i = 0; i < n; i++) {
    cin >> z[i];
  }
  for (int r = 0; r < n; r++) {
    for (int c = 0; c < m; c++) {
      if (z[r][c] == '*') {
        coloums[cc] = c + 1;
        cc++;
        rows[cr] = r + 1;
        cr++;
      }
    }
  }
  sort(coloums, coloums + 3);
  sort(rows, rows + 3);
  if (rows[0] == rows[1])
    cout << rows[2] << " ";
  else
    cout << rows[0] << " ";
  if (coloums[0] == coloums[1])
    cout << coloums[2];
  else
    cout << coloums[0];
}
