#include <bits/stdc++.h>
using namespace std;
const string FILENAME = "";
const bool FILE_IO = 1;
void init() {
  if (!FILENAME.empty()) {
    freopen((FILENAME + ".in").c_str(), "r", stdin);
    freopen((FILENAME + ".out").c_str(), "w", stdout);
  }
}
int main() {
  init();
  int k;
  cin >> k;
  vector<vector<int>> p(k);
  vector<pair<int, pair<int, int>>> t;
  vector<int> s(k);
  for (int i = 0; i < k; i++) {
    int n, sum = 0;
    cin >> n;
    for (int j = 0; j < n; j++) {
      int x;
      cin >> x;
      sum += x;
      p[i].push_back(x);
    }
    s[i] = sum;
  }
  for (int i = 0; i < k; i++) {
    for (int j = 0; j < p[i].size(); j++) {
      t.push_back(make_pair(s[i] - p[i][j], make_pair(i + 1, j + 1)));
    }
  }
  stable_sort(t.begin(), t.end());
  for (int i = 0; i < t.size() - 1; i++) {
    if (t[i].first == t[i + 1].first &&
        t[i].second.first != t[i + 1].second.first) {
      cout << "YES" << endl;
      cout << t[i].second.first << " " << t[i].second.second << endl
           << t[i + 1].second.first << " " << t[i + 1].second.second << endl;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
