include[HTML_REMOVED]
define Max(a,b) ((a)>(b)?(a):(b))
int main(){
int n,m,number=0;
scanf(“%d %d”,&n,&m);
int a[n][m];
for(int i=0;i[HTML_REMOVED]=a[j][k]&&j==n-1){
printf(“0\n”);
break;}
else if(a[i][k]>=a[j][k])
break;
else if(a[i][k]<a[j][k]&&k==m-1){
printf(“%d\n”,j+1);
goto out;
}
}
}
out:
continue;
}
return 0;
}