#include <bits/stdc++.h>
using namespace std;
int a[200005];
map<int, vector<pair<int, int> > > mp;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int k;
    cin >> k;
    int sum = 0;
    for (int j = 1; j <= k; j++) {
      cin >> a[j];
      sum += a[j];
    }
    for (int j = 1; j <= k; j++) mp[sum - a[j]].push_back({i, j});
  }
  for (auto x : mp) {
    for (int i = 1; i < x.second.size(); i++) {
      if (x.second[i].first != x.second[i - 1].first) {
        cout << "YES" << endl;
        cout << x.second[i].first << " " << x.second[i].second << endl;
        cout << x.second[i - 1].first << " " << x.second[i - 1].second << endl;
        return 0;
      }
    }
  }
  cout << "NO" << endl;
  return 0;
}
