#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int k, sum = 0;
  cin >> k;
  vector<pair<long long int, pair<long long int, long long int>>> v;
  for (long long int j = 0; j < k; j++) {
    long long int n, sum = 0;
    cin >> n;
    long long int a[n];
    for (long long int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    for (long long int i = 0; i < n; i++) {
      v.push_back(make_pair(sum - a[i], make_pair(j + 1, i + 1)));
    }
  }
  sort(v.begin(), v.end());
  for (long long int i = 1; i < v.size(); i++) {
    if (v[i].first == v[i - 1].first and
        v[i].second.first != v[i - 1].second.first) {
      cout << "YES" << endl;
      cout << v[i - 1].second.first << " " << v[i - 1].second.second << endl;
      cout << v[i].second.first << " " << v[i].second.second << endl;
      return 0;
    }
  }
  cout << "NO";
}
