#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  char **quart = new char *[n];
  for (int i = 0; i < n; i++) quart[i] = new char[m];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) cin >> quart[i][j];
  int a[6], ind = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) {
      if (quart[i][j] == '*') {
        a[ind++] = i;
        a[ind++] = j;
      }
    }
  for (int i = 0; i < 2; i++) {
    if (a[i] == a[i + 2])
      cout << a[i + 4] + 1 << " ";
    else if (a[i] == a[i + 4])
      cout << a[i + 2] + 1 << " ";
    else
      cout << a[i] + 1 << " ";
  }
  cout << endl;
  return 0;
}
