#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n ; cin >> n ; while(n){ int a ,b ,c ; cin >> a >> b >> c; // a = x1 + ans // b = x2 + ans // c = x1+x2 + ans int x1 = c-b; cout << a-x1 <