#include <bits/stdc++.h>
using namespace std;
int mx = 1e5 + 7;
int ans, sum, cnt, n, m, k, x, y, mn;
string s, s1, a, b, c;
vector<int> v, v1;
set<int> st;
map<int, int> mp;
bool boo[258];
char arr[258][258];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++) cin >> arr[i][j];
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      if (arr[i][j] == '*') {
        v.push_back(i);
        v.push_back(j);
        cnt = 1;
      }
    }
    if (cnt == 1) break;
  }
  cnt = 0;
  for (int i = n; i >= 0; i--) {
    for (int j = m; j >= 0; j--) {
      if (arr[i][j] == '*') {
        v1.push_back(i);
        v1.push_back(j);
        cnt = 1;
      }
    }
    if (cnt == 1) break;
  }
  x = v.size();
  y = v1.size();
  if (x == 2) cout << v[0] << " ";
  if (x == 4) {
    cout << v1[0] << " ";
  }
  if (y == 4) {
    if (v[1] == v1[3]) cout << v1[1];
    if (v[1] == v1[1]) cout << v1[3];
  }
  if (y == 2) {
    if (v1[1] == v[1]) cout << v[3];
    if (v1[1] == v[3]) cout << v[1];
  }
}
