P12829 [HackerEarth] millys rank 2
普及
题目描述

Milly is very much concern about her rank in her class. So to make her feel better , her friend Pranjul will give three numbers to her denoting N, X and Y. N represents the total number of students in the class. Now he has already described about the rank predictor algorithm that he has made for her. According to this algorithm, there are no less than X people who are better than her and no more than Y people are worse than her. Your task is to print the number of different ranks that she can predict using Pranjul's algorithm.

Input

First line will have a value of T (No. of test cases).
Then for every test case there will be one line containing three space separated values of N, X and Y.

Output

For every test case print the required answer in a new line.

Constraints

1 ≤ T ≤ 10^5.
0 ≤ X, Y  ≤ N  ≤  10^18.

SAMPLE INPUT
1
4 1 2

SAMPLE OUTPUT
3

Explanation

Ranks are : 2, 3, 4.

输入格式

见题面

输出格式

见题面

样例输入
1 4 1 2 SAMPLE
样例输出
3