#include <bits/stdc++.h>
using namespace std;
struct Pnt {
  int grp;
  int ind;
  int sum;
};
bool rules(Pnt a, Pnt b) {
  if (a.sum == b.sum) {
    return a.grp < b.grp;
  }
  return a.sum < b.sum;
}
vector<int> nums[200009];
vector<Pnt> tots;
int main() {
  int k, n, t, sum;
  cin >> k;
  for (int i = 0; i < k; i++) {
    cin >> n;
    sum = 0;
    while (n--) {
      cin >> t;
      sum += t;
      nums[i].push_back(t);
    }
    for (int j = 0; j < nums[i].size(); j++) {
      Pnt p;
      p.grp = i;
      p.ind = j;
      p.sum = sum - nums[i][j];
      tots.push_back(p);
    }
  }
  sort(tots.begin(), tots.end(), rules);
  for (int i = 1; i < tots.size(); i++) {
    if (tots[i].sum == tots[i - 1].sum & tots[i].grp != tots[i - 1].grp) {
      cout << "YES\n";
      cout << 1 + tots[i - 1].grp << " " << 1 + tots[i - 1].ind << "\n";
      cout << 1 + tots[i].grp << " " << 1 + tots[i].ind << "\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
