#include <bits/stdc++.h>
using namespace std;
inline void boost() {
  ios_base::sync_with_stdio();
  cin.tie(0);
}
const long long int MAX = 1e5 + 111;
const long long int mod = 1e9 + 7;
char dp[MAX], used[MAX], a[1001][1001];
int ansx[4], ansy[4];
set<int> st;
vector<int> g[MAX];
int dfs(int u) {
  used[u] = 1;
  for (int i = 0; i < g[u].size(); i++) {
    int to = g[u][i];
    if (used[to] == 0) {
      dfs(to);
    } else {
      return to;
    }
  }
}
int main() {
  boost();
  int n, m;
  cin >> n >> m;
  for (int i = 1, q = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> a[i][j];
      if (a[i][j] == '*') {
        ansx[q] = i;
        ansy[q] = j;
        q++;
      }
    }
  }
  sort(ansx + 1, ansx + 4);
  sort(ansy + 1, ansy + 4);
  if (ansx[1] != ansx[2])
    cout << ansx[1] << " ";
  else
    cout << ansx[3] << " ";
  if (ansy[1] != ansy[2])
    cout << ansy[1];
  else
    cout << ansy[3];
  exit(0);
}
