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.

Source: hackerearth | Difficulty: EASY
Tags: Mathematics


Solutions:
test_case = int(eval(input()))
str_out = ''
while(test_case):
	rank_inp = []
	rank_inp = input().split()
	int_out = int(rank_inp[2]) + 1
	if(int_out + int(rank_inp[1]) > int(rank_inp[0])):
		int_out = int(rank_inp[2])
	str_out += str(int_out)
	test_case -= 1
	str_out += "\n"
print(str_out)