#include using namespace std; int main(void) { int t; cin>>t; for(int i=1;i<=t;i++) { int a,b,c; cin>>a>>b>>c; a=a+b-c; cout<