#include <bits/stdc++.h>   using namespace std;   const int maxn = 2e5 + 100;   const int mod = 1e9 + 7;   int main() {     ios::sync_with_stdio(0);     int t;     cin >> t;     while (t--) {       int n, x, y;       cin >> n >> x >> y;       cout << max(min(n, x + y - n + 1), 1) <<     << min(x + y - 1, n) << endl;     }   }   