#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tt;
  cin >> tt;
  while (tt--) {
    long long n, x, y;
    cin >> n >> x >> y;
    if (x > y) swap(x, y);
    long long t0 = min(y - 1, n - x - 1);
    t0 = max(t0, 0LL);
    long long t1 = n - x - t0;
    long long t2 = min(x - 1, n - y - 1);
    t2 = max(t2, 0LL);
    long long t3 = n - y - t2;
    long long tm = min(t1, t3) + t0 + t2;
    cout << (n - tm) << " ";
    long long tt0 = min(y - 1, n - x);
    long long tt1 = y - 1 - tt0;
    long long tt2 = min(x - 1, n - y);
    long long tt3 = x - 1 - tt2;
    long long ttm = tt0 + tt2 + min(tt1, tt3) + 1;
    cout << ttm << "\n";
  }
  return 0;
}
