#include <bits/stdc++.h>
int main() {
  int arr[1000], a, b, c, d, n, count = 0;
  scanf("%d", &n);
  while (count < n) {
    scanf("%d%d%d%d", &a, &b, &c, &d);
    arr[count] = a + b + c + d;
    count++;
  }
  b = arr[0];
  c = 0;
  for (int t = 0; t < n; t++) {
    for (int i = n - 1; i > t; i--) {
      if (arr[i - 1] < arr[i]) {
        int tmp = arr[i - 1];
        arr[i - 1] = arr[i];
        arr[i] = tmp;
      }
    }
  }
  count = 0;
  while (count < n) {
    if (b == arr[count]) {
      printf("%d\n", count + 1);
      break;
    }
    count++;
  }
  return 0;
}
