#include using namespace std; #define ll long long int main() { ll t,n,mx=1,c,s=0,m,k; cin>>t; while(t--) { cin>>n>>m>>k; s=(n+m-k); cout<