#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using str = string;
const ll MOD1 = 1e9 + 7, MOD2 = 998244353, INF = 2e9;
const ld EPS = 1e-9;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long k;
  cin >> k;
  map<long long, vector<pair<long long, long long>>> mp;
  for (long long q = (0); q < (k); q++) {
    long long n, sm = 0;
    cin >> n;
    vector<long long> a(n);
    for (long long i = (0); i < (n); i++) {
      cin >> a[i];
      sm += a[i];
    }
    for (long long i = (0); i < (n); i++)
      mp[sm - a[i]].emplace_back(make_pair(q + 1, i + 1));
  }
  for (auto x : mp) {
    if ((ll)(x.second.size()) > 1) {
      if (x.second[0].first != x.second[(ll)(x.second.size()) - 1].first) {
        cout << "YES\n";
        cout << x.second[0].first << ' ' << x.second[0].second << '\n';
        cout << x.second[(ll)(x.second.size()) - 1].first << ' '
             << x.second[(ll)(x.second.size()) - 1].second << '\n';
        return 0;
      }
    }
  }
  cout << "NO\n";
}
