#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 3;
const int MOD = 1e9 + 7LL;
const int OO = 0x3f3f3f;
struct exam {
  int st, deadline, c, idx;
  bool operator<(const exam &other) const { return deadline > other.deadline; }
};
int main() {
  int k;
  cin >> k;
  map<int, pair<int, int> > mp;
  for (int i = 0; i < k; i++) {
    int n;
    cin >> n;
    vector<int> tmp(n);
    int sum = 0;
    for (int j = 0; j < n; j++) {
      cin >> tmp[j];
      sum += tmp[j];
    }
    for (int j = 0; j < n; j++) {
      if (mp.count(sum - tmp[j])) {
        cout << "YES\n";
        cout << mp[sum - tmp[j]].first + 1 << " " << mp[sum - tmp[j]].second + 1
             << endl;
        cout << i + 1 << " " << j + 1 << endl;
        return 0;
      }
    }
    for (int j = 0; j < n; j++) {
      mp[sum - tmp[j]] = {i, j};
    }
  }
  cout << "NO\n";
}
