#include #include #include using namespace std; int main() { int n, a[6][4]; string r[6]; cin >> n; for(int i=0; i> a[i][0] >> a[i][1] >> a[i][2] >> a[i][3] >> r[i]; int tmp[10] = {0}; for(int i=0; i tm){ tm = tmp[i]; ans = i; } } cout << ans << endl; return 0; }