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