// PATn.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
unsigned n;
cin >> n;
unsigned jia = 0;
unsigned yii = 0;
unsigned t1, t2, t3, t4;
for (unsigned i = 0; i < n; ++i)
{
cin >> t1 >> t2 >> t3 >> t4;
bool j = false;
bool y = false;
if ((t1 + t3) == t2)
j = true;
if ((t1 + t3) == t4)
y = true;
if (true == j && false == y)
jia = jia + 1;
if (false == j && true == y)
yii = yii + 1;
}
cout << yii << " " << jia;
system("pause");
return 0;
}
网友评论