#include #include #include #include #include using namespace std; int main() { int t,p,b,s,c; cin>>t; while(t--) { cin>>b>>s>>c; p=b+s-c; cout<