#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int sum = 0;
  int cnt = 0;
  for (int i = 0; i < 4; i++) {
    int s;
    cin >> s;
    sum += s;
  }
  for (int i = 1; i < n; i++) {
    int su = 0;
    for (int j = 0; j < 4; j++) {
      int s;
      cin >> s;
      su += s;
    }
    if (su > sum) cnt++;
  }
  cout << (cnt + 1) << endl;
  return 0;
}
