#include using namespace std; int main(){ long long t, b, s, m, ans, tmp1; cin>>t; while (t>0){ cin>>b>>s>>m; tmp1=b+s; ans=tmp1-m; cout<