#include <bits/stdc++.h>
using namespace std;
long long n, m, cnt;
char ar[1001][1001];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      cin >> ar[i][j];
    }
  }
  for (long long i = 0; i < n; i++) {
    cnt = 0;
    for (long long j = 0; j < m; j++) {
      if (ar[i][j] == '*') {
        cnt++;
      }
    }
    if (cnt == 1) {
      cout << i + 1 << " ";
      cnt = 0;
      for (long long j = 0; j < m; j++) {
        cnt = 0;
        for (long long i = 0; i < n; i++) {
          if (ar[i][j] == '*') {
            cnt++;
          }
        }
        if (cnt == 1) {
          cout << j + 1;
          return 0;
        }
      }
      break;
    }
  }
  cout << "\n";
  return 0;
}
