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