#include <bits/stdc++.h>
int main() {
  int n, m, fila, col, c;
  typedef struct posicion {
    int FILA;
    int COL;
  } pos;
  pos pos1, pos2, pos3, pos4;
  scanf("%d", &n);
  scanf("%d", &m);
  char linea[m];
  char mat[n][m];
  for (fila = 0; fila < n; fila++) {
    scanf("%s", linea);
    for (col = 0; col < m; col++) {
      mat[fila][col] = linea[col];
    }
  }
  c = 0;
  for (fila = 0; fila < n; fila++) {
    for (col = 0; col < m; col++) {
      if (mat[fila][col] == '*') {
        c++;
        if (c == 1) {
          pos1.FILA = fila + 1;
          pos1.COL = col + 1;
        }
        if (c == 2) {
          pos2.FILA = fila + 1;
          pos2.COL = col + 1;
        }
        if (c == 3) {
          pos3.FILA = fila + 1;
          pos3.COL = col + 1;
        }
      }
    }
  }
  if (pos1.FILA == pos2.FILA && pos1.COL == pos3.COL) {
    pos4.FILA = pos3.FILA;
    pos4.COL = pos2.COL;
  }
  if (pos3.FILA == pos2.FILA && pos3.COL == pos1.COL) {
    pos4.FILA = pos1.FILA;
    pos4.COL = pos2.COL;
  }
  if (pos2.FILA == pos3.FILA && pos2.COL == pos1.COL) {
    pos4.FILA = pos1.FILA;
    pos4.COL = pos3.COL;
  }
  if (pos2.FILA == pos1.FILA && pos2.COL == pos3.COL) {
    pos4.FILA = pos3.FILA;
    pos4.COL = pos1.COL;
  }
  printf("%d  %d", pos4.FILA, pos4.COL);
}
