#include <iostream>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n;
cin>>n;
n*=4;
n-=1;
int x=0,y=0;
while(n--){
int x1,x2;
cin>>x1>>x2;
x^=x1;
y^=x2;
}
cout<<x<<' '<<y<<'\n';
}
}
Comments
Post a Comment