#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  int I1 = 0, I2 = 0, J1 = 0, J2 = 0;
  int i1 = 0, i2 = 0, j1 = 0, j2 = 0;
  char input;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= m; j++) {
      cin >> input;
      if (input == '*') {
        if ((I1 == 0) && (J1 == 0)) {
          I1 = i;
          J1 = j;
          i1++;
          j1++;
        } else if ((i != I1) && (j != J1)) {
          I2 = i;
          J2 = j;
          i2++;
          j2++;
        } else if ((i == I1) && (j != J1)) {
          J2 = j;
          i1++;
          j2++;
        } else if ((i != I1) && (j == J1)) {
          I2 = i;
          i2++;
          j1++;
        }
      }
    }
  }
  if (min(i1, i2) == i1)
    cout << I1 << " ";
  else
    cout << I2 << " ";
  if (min(j1, j2) == j1)
    cout << J1;
  else
    cout << J2;
}
