#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  char ch[n][m];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cin >> ch[i][j];
    }
  }
  bool flag = false, flag2 = false;
  int ans1 = -1, ans2 = -1;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (ch[i][j] == '.') {
        for (int k = 0; k < n; k++) {
          if (ch[k][j] == '*') {
            ans1 = i + 1;
            flag = true;
            break;
          }
        }
        for (int k = 0; k < m; k++) {
          if (ch[i][k] == '*') {
            ans2 = j + 1;
            flag2 = true;
            break;
          }
        }
        if (flag and flag2) {
          cout << ans1 << " " << ans2;
        } else {
          ans1 = -1;
          ans2 = -1;
          flag = false;
          flag2 = false;
        }
      }
      if (flag and flag2) break;
    }
    if (flag and flag2) break;
  }
  return 0;
}
