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