#include <bits/stdc++.h>
using namespace std;
const long long int mxn = 1e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int i, j, k, n, m, x, y;
    cin >> n >> x >> y;
    long long int ans1 = 1, x2 = x - 1, y2 = y - 1;
    x2 -= min(x - 1, n - y);
    ans1 += min(x - 1, n - y);
    y2 -= min(y - 1, n - x);
    ans1 += min(y - 1, n - x);
    ans1 += max(x2, y2);
    long long int x1 = x - 1, y1 = y - 1, ans2 = 1;
    if ((x - 1) <= (n - y - 1))
      x1 -= (x - 1);
    else if (n - y > 1)
      x1 -= n - y - 1;
    if ((y - 1) <= (n - x - 1))
      y1 -= (y - 1);
    else if (n - x > 1)
      y1 -= n - x - 1;
    ans2 += max(x1, y1);
    cout << ans2 << " " << ans1 << "\n";
  }
  return 0;
}
