#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  bool mat[100][100];
  scanf("%d %d", &n, &m);
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) {
      char c;
      scanf(" %c", &c);
      if (c == '.')
        mat[i][j] = false;
      else
        mat[i][j] = true;
    }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      if (mat[i][j]) {
        int i2, j2;
        for (i2 = 0; i2 < n; i2++) {
          if (mat[i2][j] && i2 != i) break;
        }
        for (j2 = 0; j2 < m; j2++) {
          if (mat[i][j2] && j2 != j) break;
        }
        if (i2 != n && j2 != m) {
          printf("%d %d\n", i2 + 1, j2 + 1);
          return 0;
        }
      }
    }
  }
  return 0;
}
