#include <bits/stdc++.h>
using namespace std;
long long K;
long long N, sum = 0, a[200000 + 10];
map<long long, pair<long long, long long> > m;
map<long long, bool> M;
int main() {
  cin >> K;
  for (long long r = 1; r <= K; r++) {
    cin >> N;
    sum = 0;
    for (long long i = 1; i <= N; i++) cin >> a[i], sum += a[i];
    for (long long i = 1; i <= N; i++) {
      if (M[sum - a[i]]) {
        cout << "YES" << endl;
        pair<long long, long long> pr = m[sum - a[i]];
        cout << pr.first << " " << pr.second;
        cout << endl;
        cout << r << " " << i << endl;
        return 0;
      }
    }
    for (long long i = 1; i <= N; i++) {
      M[sum - a[i]] = true;
      pair<long long, long long> pr;
      pr.first = r;
      pr.second = i;
      m[sum - a[i]] = pr;
    }
  }
  cout << "NO";
  return 0;
}
