#include <bits/stdc++.h>
using namespace std;
int num[1000][1000] = {0};
int main() {
  int n, m;
  int flag = 0;
  int ans_x;
  int ans_y;
  int cnt = 0;
  int cnt_raw[1000] = {0};
  int cnt_col[1000] = {0};
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      char tmp;
      cin >> tmp;
      if (tmp == '.') {
        num[i][j] = 0;
      } else {
        cnt++;
        num[i][j] = 1;
        cnt_raw[i]++;
        cnt_col[j]++;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      int sum = 0;
      sum = cnt_raw[i] + cnt_col[j];
      if (num[i][j] == 1) sum--;
      if (sum == cnt) {
        flag = 1;
        ans_x = i + 1;
        ans_y = j + 1;
        break;
      }
    }
    if (flag == 1) break;
  }
  if (flag == 1) {
    cout << "YES" << endl << ans_x << " " << ans_y << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
