#include <bits/stdc++.h>   using namespace std;   class Solution {    public:     void solve(std::istream& in, std::ostream& out) {       int T;       in >> T;       for (int _t = 0; _t < (int)(T); ++_t) {         int n, s, t;         in >> n >> s >> t;         int res = n - min(s, t) + 1;         out << res << endl;       }     }   };   void solve(std::istream& in, std::ostream& out) {     out << std::setprecision(12);     Solution solution;     solution.solve(in, out);   }   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     istream& in = cin;     ostream& out = cout;     solve(in, out);     return 0;   }   