#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  map<int, pair<int, int> > us;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    int sum = 0;
    int a[x + 10];
    for (int i = 1; i <= x; ++i) {
      cin >> a[i];
      sum += a[i];
    }
    for (int j = 1; j <= x; ++j) {
      if (us[sum - a[j]].first != 0) {
        cout << "YES\n";
        cout << us[sum - a[j]].first << ' ' << us[sum - a[j]].second << '\n';
        cout << i << ' ' << j << '\n';
        return 0;
      }
    }
    for (int j = 1; j <= x; ++j) {
      if (us[sum - a[j]].first == 0) {
        us[sum - a[j]] = {i, j};
      }
    }
  }
  cout << "NO\n";
  return 0;
}
