#include<bits/stdc++.h>
using namespace std;
int main(){
int max=0,maxx;
int happy=1;
for(int i=1;i<=7;i++){
int c,d;
cin>>c>>d;
int a=c+d;
if(a>=8){
if(a>max){
max=a;
maxx=i;
}
happy=0;
}
}
if(happy) cout<<0;
else cout<<maxx;
return 0;
}
这是什么情况,求大lao