Taras, as a true businessman, has business matters to attend to. Today, he needs to visit two offices and resolve issues in each of them. However, there's a problem: he is not sure if he will be able to solve everything today.
He starts at home at time . The first office is open in the time range [q_1, q_2]. Resolving issues there will take t_1 time. The second office is open in the range [w_1, w_2]. Resolving issues there will take t_2 time. If, upon his arrival at the office, there is less time left before it closes than is needed to resolve the issues, he will not be able to solve them. Additionally, moving between locations also takes time. Traveling from home to the first office and back takes r_1 time. Traveling from home to the second office and back takes r_2 time. Traveling between the offices in either direction takes r_3 time. If he arrives at the office before it opens, he can wait until the office starts working.
Tell Taras whether he will be able to resolve his issues today.
The first line contains a single integer (1 \le t \le 10^4) — the number of test cases.
Each test case consists of three lines.
The first line contains three integers r_1, r_2, r_3 (0 \le r_1,r_2,r_3 \le 10^9) — the time Taras spends traveling to the first office from home and back, the time spent traveling to the second office from home and back, and the time Taras spends moving between the offices in either direction, respectively. It is guaranteed that r_1 + r_3 \ge r_2, r_2 + r_3 \ge r_1, and r_1+r_2 \ge r_3.
The second line contains three integers q_1, q_2, t_1 (0 \le q_1 \le q_2 \le 10^9, 0 \le t_1 \le 10^9) — the time interval during which the first office is open and the amount of time Taras needs to resolve issues in the first office.
The third line contains three integers w_1, w_2, t_2 (0 \le w_1 \le w_2 \le 10^9, 0 \le t_2 \le 10^9) — the time interval during which the second office is open and the amount of time Taras needs to resolve issues in the second office.
For each test case, output if Taras can resolve all matters or if he cannot.
Example 1
For the first test case, Taras can first go the distance r_1 to the first office and wait until time . He will finish all matters at time and then travel the distance r_3 to the second office. He will arrive there at time and finish all matters in it at time .
Subtask ( points): (r_1 = r_2 = r_3)
Subtask ( points): (t_1 = t_2 = 0)
Subtask ( points): (q_1 \le q_2 < w_1 \le w_2)
Subtask ( points): No additional constraints