#include using namespace std; int main() { int i,j,n,a,b,c; cin >> n; while(n--) { cin >> a >> b >> c; int e=a+b; cout << e-c <