#include <bits/stdc++.h>
using namespace std;
double gcd(double a, double b) { return a < 0.01 ? b : gcd(fmod(b, a), a); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int k;
  cin >> k;
  map<long long int, pair<long long int, long long int>> m;
  long long int s = 0;
  for (int j = 0; j < k; j++) {
    long long int n;
    cin >> n;
    s = 0;
    long long int a[n];
    for (int i = 0; i < int(n); i++) {
      cin >> a[i];
      s += a[i];
    }
    for (int i = 0; i < int(n); i++) {
      if (!m.count(s - a[i])) {
        m[s - a[i]].first = i;
        m[s - a[i]].second = j;
      } else if (m.count(s - a[i]) && m[s - a[i]].second != j) {
        cout << "YES" << '\n'
             << m[s - a[i]].second + 1 << " " << m[s - a[i]].first + 1 << '\n'
             << j + 1 << " " << i + 1 << '\n';
        return 0;
      }
    }
  }
  cout << "NO" << '\n';
  return 0;
}
