{"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\"\u003eThat\u0027s a question. Now Happy (Xi Yangyang) has been caught by Wolffy (Hui Tailang). As Wolffy is busy preparing the big meal, a good idea comes to Happy. He proposes a game that only Wolffy had won, he can eat Happy. Wolffy always believes he is the cleverest one, so they reach a consensus. And they both agree with Wolnie (Hong Tailang) when the referee. A theater will be beat to die by Wolnie\u0027s pan.\u003cbr\u003e\u003ccenter\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/233d93a29065699cb2aecb440b260f27?v\u003d1714360746\"\u003e\u003c/center\u003e\u003cbr\u003e\u003cbr\u003eThe game is defined as follow.\u003cbr\u003e\u003cbr\u003eThere are multiple test cases.\u003cbr\u003e\u003cbr\u003eIn each case there are R (R \u0026lt; 10) rounds of the game, R is an odd number to guarantee that there must be a winner in the end.\u003cbr\u003e\u003cbr\u003eIn each round: There is a pile of n (10 \u0026lt;\u003d n \u0026lt;\u003d 200) Special-cards and m (1 \u0026lt;\u003d m \u0026lt;\u003d 100) piles of Point-card on the table. The Point-card piles are ordered from 1 to m. Wolffy and Happy take turns to get one card from the top of Special-cards pile. Wolffy always takes first in the game. When all the Special-cards have been taken, the round is over and the one with more cards in the hands gains one point. If there is a tie, Wolffy gains one point.(Wolffty and Happy both have 0 point before the game).\u003cbr\u003e\u003cbr\u003eThere are 5 kinds of Special-cards besides the Point-card in the game.\u003cbr\u003e\u003cbr\u003e0) Point-card: a card with a point X (1 \u0026lt;\u003d X \u0026lt;\u003d 2000000).\u003cbr\u003e\u003cbr\u003e1) Challenge-card: no matter who takes this card, they both take one card with the maximum point from their own hands. After a comparison, if Happy\u0027s card has a larger point, He takes all the Wolffy\u0027s in-hands cards, vice versa; If there is a tie no more operation.\u003cbr\u003e\u003cbr\u003e2) Loss-card: the one who takes this card, He must throw a card with the maximum point.\u003cbr\u003e\u003cbr\u003e3) Add-card: a card with P point, the one who gets this card will make the card with maximum point P point larger, i.e. if a Point-card with X point is the maximum, its point will change to X + P. An Add-card can only work on one Point-card.\u003cbr\u003e\u003cbr\u003e4) Exchange-card: a card with Q point. The one who gets this card must change one maximum-point card\u0027s point to Q.\u003cbr\u003e\u003cbr\u003e5) Take-card: a card with a integer K, indicates one can get the all the cards of Kth Point-card pile. In one round no two Take-card have the same K.\u003cbr\u003e\u003cbr\u003eYou can assume that when one gets the Loss-card, Add-card, Exchange-card, He has at least one card in the hands, when one gets a Challenge-card, they both have at least one card in the hands.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"Input\u003cbr\u003e\u003cbr\u003eFor each test case, the first line of input is an integer R, indicates the number of rounds:\u003cbr\u003e\u003cbr\u003eLine 2: two integers n indicates the number of Special-cards, m indicates the number of Point-card piles.\u003cbr\u003e\u003cbr\u003eLine 3: a line of m integers. The ith number Pi (1 \u0026lt;\u003d Pi \u0026lt;\u003d 10000)indicates the number cards of ith Point-card pile.\u003cbr\u003e\u003cbr\u003eFor the next m lines, ith line contains Pi numbers indicate every Point-card\u0027s point of ith Point-card pile.\u003cbr\u003e\u003cbr\u003eThe next n lines, in each line, there are five kinds of input, indicate Special-cards by the order of \"from top to bottom\".\u003cbr\u003e\u003cbr\u003e1) T K: indicates one gets a Take-card, and He can get Kth Point-card pile(1 \u0026lt;\u003d K \u0026lt;\u003d m).\u003cbr\u003e\u003cbr\u003e2) C: indicates one gets a Challenge card.\u003cbr\u003e\u003cbr\u003e3) L: indicates one gets a Loss card.\u003cbr\u003e\u003cbr\u003e4) A P: indicates one gets an Add card with P point (1 \u0026lt;\u003d P \u0026lt;\u003d 30).\u003cbr\u003e\u003cbr\u003e5) E Q: indicates one gets an Exchange card with Q point (1 \u0026lt;\u003d Q \u0026lt;\u003d 2000000)."}},{"title":"Output","value":{"format":"HTML","content":"For each round you should print A:B in a line. A indicate the number of left cards of Wolffy, B indicates the number of left cards of Happy. At the end of game, if Wolffy gains more points, print \"Hahaha...I win!!\", else print \"I will be back!!\"."}},{"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\n5 3\r\n3 3 3\r\n10 11 2\r\n7 4 12\r\n4 2 9\r\nT 1\r\nT 2\r\nA 7\r\nT 3\r\nC\r\n6 3\r\n2 2 2\r\n1 4\r\n5 2\r\n4 2\r\nT 2\r\nT 1\r\nL\r\nA 2\r\nT 3\r\nC\r\n5 3\r\n2 2 2\r\n1 3\r\n4 2\r\n5 2\r\nT 2\r\nT 1\r\nE 3\r\nA 1\r\nL\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e9:0\r\n0:5\r\n1:2\r\nI will be back!!\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}