In a certain game, you control a board of n minions numbered from 1 to n. Each minion i is characterized by an integer a_i, called its attack.
For the upcoming fight, you will arrange the minions in a line from left to right.
After that, some of the minions' attacks will get buffed. The ability of each minion i reads "Before the fight, increase the attack of another random minion by b_i". Formally, for each i, an arbitrary minion j=i will be chosen and its attack a_j will be increased by b_i.
Note that the buff choices are independent and happen simultaneously. In particular, the attack of any minion can get buffed multiple times.
You want the attacks of the minions to be non-increasing from left to right after all the buffs happen. Determine whether it's possible for you to arrange the minions in a way that guarantees that, regardless of buff choices.
Each test contains multiple test cases. The first line contains the number of test cases t (1≤t≤1000). Description of the test cases follows.
The first line of each test case contains a single integer n (2≤n≤100).
The i-th of the next n lines contains two integers a_i and b_i (0≤a_i,b_i≤106).
For each test case, print "Yes" if it is possible to arrange the minions in such a way that their attacks will be non-increasing regardless of buff choices, and "No" otherwise.
In the first example test case, the minions buff each other. The attacks of minions 1 and 2 during the fight will always be 20 and 35, respectively. You can arrange the minions in order ⟨2,1⟩.
In the second example test case, only minion 2 buffs someone else. One valid ordering is ⟨3,1,2⟩. If minion 2 buffs minion 1, the attacks of the minions, from left to right, will be ⟨10,10,7⟩. If minion 2 buffs minion 3, the attacks of the minions will be ⟨13,7,7⟩. Both sequences are non-increasing.