#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<pair<long long int, long long int> > ge;
  for (long long int i = 0; i < n; i++) {
    long long int x = 0;
    for (long long int j = 0; j < 4; j++) {
      long long int temp;
      cin >> temp;
      x += temp;
    }
    ge.push_back(make_pair(-x, i));
  }
  sort(ge.begin(), ge.end());
  for (long long int i = 0; i < n; i++) {
    if (ge[i].second == 0) {
      cout << i + 1;
      return 0;
    }
  }
  return 0;
}
