#include <bits/stdc++.h>
using namespace std;
const unsigned long long mod = 1e9 + 7;
void dance() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  dance();
  int k;
  cin >> k;
  vector<pair<long long, pair<int, int>>> temp(2e5);
  int cnt = 0;
  for (int i = 1; i <= k; i++) {
    int n;
    cin >> n;
    vector<int> v(n);
    long long sum = 0;
    for (int j = 0; j < n; j++) {
      cin >> v[j];
      sum += v[j];
    }
    map<long long, pair<int, int>> mp;
    for (int j = 0; j < n; j++) mp[sum - v[j]] = {i, j + 1};
    for (auto it : mp) {
      temp[cnt].first = it.first;
      pair<int, int> p = it.second;
      temp[cnt].second.first = p.first;
      temp[cnt].second.second = p.second;
      cnt++;
    }
    mp.clear();
  }
  map<long long, int> cont;
  long long ans = 0;
  bool ok = 0;
  for (int i = 0; i < cnt; i++) {
    long long res = temp[i].first;
    cont[res]++;
    if (cont[res] >= 2) {
      ans = res;
      ok = 1;
      break;
    }
  }
  if (ok)
    cout << "YES" << '\n';
  else
    return cout << "NO", 0;
  int c = 0;
  for (int i = 0; i < cnt; i++) {
    if (temp[i].first == ans && c < 2) {
      cout << temp[i].second.first << ' ' << temp[i].second.second << '\n';
      c++;
    }
    if (c == 2) return 0;
  }
  cout << "NO";
  return 0;
}
