#include <bits/stdc++.h>
const int N = 2e5 + 7;
using namespace std;
int n, a[N], flag, k;
long long s;
map<int, pair<int, int>> chk;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> k;
  flag = 0;
  for (int i = 1; i <= k; ++i) {
    cin >> n;
    s = 0;
    for (int j = 1; j <= n; ++j) cin >> a[j], s += a[j];
    for (int j = 1; j <= n; ++j) {
      auto &v = chk[s - a[j]];
      if (v.first != 0 && v.first != i && flag == 0) {
        flag = 1;
        cout << "YES\n";
        cout << v.first << ' ' << v.second << '\n';
        cout << i << ' ' << j << '\n';
      }
      v = {i, j};
    }
  }
  if (!flag) cout << "NO";
}
