The first line of the input file is an integer T, indicating the number of test cases. (T≤1000)
In the following T lines, each line indicates a test case, containing 5 integers, a,b,c,l,r. (∣a∣,∣b∣,∣c∣≤100,∣l∣≤∣r∣≤100), whose meanings are given above.