{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eIn the game of Defense of the Ancients, a team has n units and the other team has m towers. Each unit and towerhas some hit points (HP) and a fixed attack power (AP). The units (resp. towers) with positive HP are surviving and can attack the towers (resp. units), and the units (resp. towers) with zero HP are dead (resp. destroyed) andcannot attack anything.\u003cbr\u003eThe game is real-time and the time goes continuously. If a tower (resp. unit) is being attacked by k units (resp.towers) with the AP of $a_1, a_2, ... , a_k$ at the same time, then its HP will continuously decrease with the rate of $a_1 + a_2 + ... + a_k$ per second. There is no restriction on attack ranges. That is, any unit can attack any towers andvice versa.\u003cbr\u003eDuring the whole game, the surviving units (resp. towers) will attack a selected tower (resp. unit) together untilit has been destroyed (resp. killed). That is, the surviving units (resp. towers) will focus to destroy (resp. kill) the towers (resp. units) one by one.\u003cbr\u003eIf all the units are killed and there is at least a surviving tower, the tower team wins. If all the towers are destroyed and there is at least a surviving unit, the unit team wins. If all the units are killed and all the towers are destroyed at the same time, the game ends in a tie.\u003cbr\u003eBoth teams play optimally. Your task is to predict the winner of the game.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line is the number of test cases up to 10.\u003cbr\u003eFor each test case, there are 5 lines. The first line contains two integers n and m (0 \u0026lt; n ≤ 10^5, 0 \u0026lt; m ≤ 10^5).\u003cbr\u003eThe second line contains n integers, which are the HP of the units. The third line contains n integers, which are the AP of the units. The forth line contains m integers, which are the HP of the towers. The fifth line contains m integers, which are the AP of the towers.\u003cbr\u003eAll the HP and AP are positive and less than 2^32.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each test case, if the unit team has a winning strategy, output “Units win”, if the tower team has a winning strategy, output “Towers win”, if the game ends in a tie, output “Tie”."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\r\n1 1\r\n10\r\n10\r\n9\r\n11\r\n2 2\r\n1 1\r\n5 4\r\n2 1\r\n4 2\r\n3 3\r\n1 2 3\r\n1 4 9\r\n1 4 9\r\n1 2 3\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eUnits win\r\nTowers win\r\nTie\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}