{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\u003cspan class\u003d\"tex-font-style-it\"\u003eICU for Car!\u003c/span\u003e is an exciting racing game. Two players take turns to make a move. In one move, the player chooses one car and push this car one grid right-forward. Cars satisfying all the conditions will be also pushed forward too.\u003c/p\u003e\u003cul\u003e \u003cli\u003e In the same racetrack with the selected car. \u003c/li\u003e\u003cli\u003e In front of the selected car. \u003c/li\u003e\u003cli\u003e Connected with the selected car. Formally, two cars $$$x$$$ and $$$y$$$ are connected, if there is no gap between $$$x$$$ and $$$y$$$, or they are both connected with car $$$z$$$. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eNote that if the right-most car in this move has already touched the finishing line, this move is not valid and you cannot process it. The player who can\u0027t make a move loses.\u003c/p\u003e\u003cp\u003eThere are $$$n$$$ racetracks holding the cars in one game. For each racetrack, the number of cars $$$m_i$$$, the position of each car $$$x_j$$$ and the position of finishing line $$$e_i$$$ are given.\u003c/p\u003e\u003cp\u003eNow Alice and Bob wants to play this game and Alice takes the first turn. Can you tell wor the winner?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains one integer $$$T ~ (1 \\leq T \\leq 20)$$$ denoting the number of test cases.\u003c/p\u003e\u003cp\u003eFor each testcase,\u003c/p\u003e\u003cp\u003eThe first line contains one integer $$$n ~ (1 \\leq n \\leq 1\\,000)$$$ denoting the number of racetracks.\u003c/p\u003e\u003cp\u003eThe $$$2i$$$-th line contains two integer $$$m_i, e_i ~ (1 \\leq m_i \\leq 1\\,000; 0 \u0026lt; e_i \\leq 1\\,000\\,000\\,000)$$$ denoting there are $$$m_i$$$ cars on the racetrack $$$i$$$ and the finishing line is at $$$e_i$$$. It is guaranteed that $$$\\sum m \\leq 1\\,500\\,000$$$.\u003c/p\u003e\u003cp\u003eThe $$$2i+1$$$-th line contains $$$m_i$$$ integers $$$x_1, x_2, \\cdots, x_{m_i} ~ (0 \u0026lt; x_j \\leq e_i)$$$ representing the initial position of each car on the racetrack $$$i$$$. It is guaranteed that $$$x_i \u0026lt; x_j$$$ for $$$i \u0026lt; j$$$.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eFor each testcase, output one line containing the name of winner (either \u003cspan class\u003d\"tex-font-style-tt\"\u003eAlice\u003c/span\u003e or \u003cspan class\u003d\"tex-font-style-tt\"\u003eBob\u003c/span\u003e).\u003c/p\u003e"}},{"title":"Examples","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\u003e2\n1\n3 5\n2 3 5\n2\n3 5\n2 3 5\n3 5\n2 3 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eAlice\nBob\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}