#include<stdio.h>
int main()
{
int n,i;
int flag;
int countA = 0,countB = 0;
int aS,aD,bS,bD;
scanf("%d",&n);
for(i=0; i<n; i++)
{
scanf("%d",&aS);
scanf("%d",&aD);
scanf("%d",&bS);
scanf("%d",&bD);
flag = aS+bS;
if(flag == aD && flag == bD)
continue;
else
{
if(aD == flag)
countA++;
if(bD == flag)
countB++;
}
}
printf("%d %d",countB,countA);
}
网友评论