#include<bits/stdc++.h>
#define i64 long long
#define mx(a,b,c) max(a,max(b,c))
#define mn(a,b,c) min(a,min(b,c))
#define eef else if
#define ff(i,s,e) for(int i=(s); i<e; i++)
#define ff2(i,s,e) for(int i=(s); i>=e; i--)
#define sf scanf
#define pf printf
#define dbug(x) cout<<"x = "<<x<<endl
#define newl cout<<"\n"
#define putcase cout<<"Case "<<++cse<<":"
using namespace std;
int main()
{
int t;
while(cin>>t){
i64 sum1=0, sum2=0,sum3=0, err1,err2;
ff(i,0,t){
int x;
cin>>x;
sum1+=x;
}
ff(i,0,t-1){
int x;
cin>>x;
sum2+=x;
}
err1=sum1-sum2;
ff(i,0,t-2){
int x;
cin>>x;
sum3+=x;
}
err2=sum2-sum3;
cout<<err1<<endl<<err2<<endl;
}
return 0;
}
#define i64 long long
#define mx(a,b,c) max(a,max(b,c))
#define mn(a,b,c) min(a,min(b,c))
#define eef else if
#define ff(i,s,e) for(int i=(s); i<e; i++)
#define ff2(i,s,e) for(int i=(s); i>=e; i--)
#define sf scanf
#define pf printf
#define dbug(x) cout<<"x = "<<x<<endl
#define newl cout<<"\n"
#define putcase cout<<"Case "<<++cse<<":"
using namespace std;
int main()
{
int t;
while(cin>>t){
i64 sum1=0, sum2=0,sum3=0, err1,err2;
ff(i,0,t){
int x;
cin>>x;
sum1+=x;
}
ff(i,0,t-1){
int x;
cin>>x;
sum2+=x;
}
err1=sum1-sum2;
ff(i,0,t-2){
int x;
cin>>x;
sum3+=x;
}
err2=sum2-sum3;
cout<<err1<<endl<<err2<<endl;
}
return 0;
}
No comments:
Post a Comment