#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n, i, j, k, sum;
  cin >> k;
  vector<pair<long long, pair<long long, long long>>> v;
  for (j = 0; j < k; j++) {
    cin >> n;
    long long a[n];
    sum = 0;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    for (i = 0; i < n; i++) {
      v.push_back({sum - a[i], {j + 1, i + 1}});
    }
  }
  sort(v.begin(), v.end());
  for (i = 0; i < (v.size() - 1); i++) {
    if (v[i].first == v[i + 1].first &&
        v[i].second.first != v[i + 1].second.first) {
      cout << "YES\n";
      cout << (v[i].second.first) << " " << (v[i].second.second) << "\n";
      cout << (v[i + 1].second.first) << " " << (v[i + 1].second.second)
           << "\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
