#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<vector<int> > v(n);
  set<tuple<int, int, int> > elements;
  tuple<int, int> first, second;
  for (int i = 0; i < n; i++) {
    int m;
    int sum = 0;
    cin >> m;
    for (int j = 0; j < m; j++) {
      int x;
      cin >> x;
      v[i].push_back(x);
      sum += x;
    }
    for (int j = 0; j < m; j++) {
      int cur = sum - v[i][j];
      auto it = elements.lower_bound(make_tuple(cur, -1, -1));
      if (it != elements.end()) {
        if (get<0>(*it) == cur) {
          cout << "YES\n";
          cout << get<1>(*it) << " " << get<2>(*it) << "\n";
          cout << i + 1 << " " << j + 1 << "\n";
          return 0;
        }
      }
    }
    for (int j = 0; j < m; j++) {
      int cur = sum - v[i][j];
      elements.insert(make_tuple(cur, i + 1, j + 1));
    }
  }
  cout << "NO\n";
  return 0;
}
