#include <bits/stdc++.h>
using namespace std;
long long a, b, c, d, k, n, m, x, y, cnt, ans, tt;
map<int, int> mp, pm;
vector<int> v, t;
int main() {
  cin >> n >> m;
  char f[n][m];
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      cin >> f[i][j];
      if (f[i][j] == '*') {
        v.push_back(i);
        mp[i]++;
        t.push_back(j);
        pm[j]++;
      }
    }
  }
  sort(v.begin(), v.end());
  sort(t.begin(), t.end());
  for (long long i = 0; i < v.size(); i++) {
    if (mp[v[i]] == 1) cout << v[i] + 1 << ' ';
  }
  for (long long i = 0; i < t.size(); i++) {
    if (pm[t[i]] == 1) cout << t[i] + 1 << ' ';
  }
}
