#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  unordered_map<int, pair<int, int>> h;
  int k;
  cin >> k;
  for (int i = 0; i < k; ++i) {
    int n;
    cin >> n;
    vector<int> a(n);
    int s = 0;
    for (int &ai : a) {
      cin >> ai;
      s += ai;
    }
    for (int j = 0; j < n; ++j) {
      auto hi = h.find(s - a[j]);
      if (hi != h.end()) {
        cout << "YES" << endl;
        cout << hi->second.first + 1 << " " << hi->second.second + 1 << endl;
        cout << i + 1 << " " << j + 1 << endl;
        return 0;
      }
    }
    for (int j = 0; j < n; ++j) {
      h.emplace(s - a[j], make_pair(i, j));
    }
  }
  cout << "NO" << endl;
}
