#SDNU1247. A.网瘾少年周老灰
A.网瘾少年周老灰
Description
If you have played Hearthstone, you will figure out this problem easily.
Zhoulaohui is a shut-in so he play Hearthstone everyday. But on the deadline, if he do not study, he would not pass the final exam. So he decides to make out a water problem. He developed a simple Hearthstone and played well. Meanwhile he seemed to have some kind of compulsive disorder that he wants to wipe out all opponents and do not want his entourages to die.
One entourage or opponent has his health point and attack. If A fell on B, A’s health point will minus B’s attack and B’s health point will minus A’s attack. If someone’s health point is not greater than zero, his life will not exist. And one Zhoulaohui’s entourage only can fell on one opponent.
Now the number of Zhoulaohui’s entourages is equal to his opponents, he wants to know whether he can do it. Can you help him?
Format
Input
the first line is the number of test cases
for each test case, first line will be an integer
Following lines, each line consists of integers, Zhoulaohui’s entourage’s health point and attack
Then follow lines, each line consists of integers, Zhoulaohui’s opponent’s health point and attack
Output
If you think Zhoulaohui can achieve his goal, output (without quotes).
Otherwise, output (without quotes).
Samples
1
3
4 4
5 5
6 6
1 1
2 2
3 3
Sorry about that!