{"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\"\u003eTweek and Craig are good friends and always playing together. And they just invented a new game when doing their math homework.\u003cbr\u003e\u003cbr\u003eFirst of all, they write three arrays $A$, $B$, and $C$, each with $N$ numbers. Then on the black board, they write those arrays as\u003cbr\u003e\u003cbr\u003e$$A + B \u003d C$$\u003cbr\u003e\u003cbr\u003eIf the equation is satisfied, it means for each position $i$ from $1$ to $N$, there are $A_i + B_i \u003d C_i$ holds.\u003cbr\u003e\u003cbr\u003eOf course, this equation is not always satisfied at the very beginning.\u003cbr\u003e\u003cbr\u003eFortunately, for arrays $A$, $B$ and $C$, some numbers are $changeable$, while other\u0027s are not. Those $changeable$ numbers\u0027 positions are determined before the game begins.\u003cbr\u003e\u003cbr\u003eDuring the game, Tweek and Craig will take turns, trying to change a number from an array. Tweek plays first.\u003cbr\u003e\u003cbr\u003eIn each turn, the player can choose a $changeable$ number from an array, and substract it by one. However, no negative numbers should appear, so the chosen number cannot be $0$ before substraction.\u003cbr\u003e\u003cbr\u003eTweek\u0027s goal is to make the equation satisfied during the game, while Craig\u0027s goal is to prevent it to happen.\u003cbr\u003e\u003cbr\u003eThe game ends when the equation is satisfied (a win for Tweek) or there are no possible moves but still $A + B \\neq C$ (means there is \u003cb\u003eat least one\u003c/b\u003e $i \\in \\left[1, N\\right]$, where $A_i + B_i \\neq C_i$, which is a win for Craig).\u003cbr\u003e\u003cbr\u003eGiven $A$, $B$ and $C$, and the position of $changeable$ numbers for each array, your task is to determine the winner.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"First line contains an integer $T$, which indicates the number of test cases.\u003cbr\u003e\u003cbr\u003eEvery test case begins with an integers $N$, which is the length of array $A$, $B$ and $C$.\u003cbr\u003e\u003cbr\u003eThe $2^{nd}$ line and $3^{rd}$ line describe the array $A$. The $2^{nd}$ line contains $N$ intergers $A_1$, $A_2$, $\\cdots$, $A_N$, indicating the elements in array $A$. The $3^{rd}$ line contains $N$ intergers $u_1$, $u_2$, $\\cdots$, $u_N$, and $u_i$ is $1$ if $A_i$ is $changeable$, otherwise $u_i$ is $0$.\u003cbr\u003e\u003cbr\u003eThe $4^{th}$ line and $5^{th}$ line describe the array $B$. The $4^{th}$ line contains $N$ intergers $B_1$, $B_2$, $\\cdots$, $B_N$, indicating the elements in array $B$. The $5^{th}$ line contains $N$ intergers $v_1$, $v_2$, $\\cdots$, $v_N$, and $v_i$ is $1$ if $B_i$ is $changeable$,otherwise $v_i$ is $0$.\u003cbr\u003e\u003cbr\u003eThe $6^{th}$ line and $7^{th}$ line describe the array $C$. The $6^{th}$ line contains $N$ intergers $C_1$, $C_2$, $\\cdots$, $C_N$, indicating the elements in array $C$. The $7^{th}$ line contains $N$ intergers $w_1$, $w_2$, $\\cdots$, $w_N$, and $w_i$ is $1$ if $C_i$ is $changeable$,otherwise $w_i$ is $0$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ $1 \\leq T \\leq 2000$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ for 75% data, $1 \\leq N \\leq 10$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ for 95% data, $1 \\leq N \\leq 50$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ for 100% data, $1 \\leq N \\leq 100$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ $0 \\leq A_i, B_i, C_i \\leq 10^9$.\u003cbr\u003e\u003cbr\u003e$\\cdot$ both $u_i, v_i, w_i$ is either $0$ or $1$.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For every test case, you should output \"\u003cb\u003eCase #x: y\u003c/b\u003e\", where $x$ indicates the case number and counts from $1$, and $y$ is the winner of the game."}},{"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\n2\r\n4 3\r\n1 1\r\n4 4\r\n0 1\r\n5 5\r\n0 0\r\n2\r\n4 4\r\n1 1\r\n4 4\r\n0 0\r\n5 5\r\n0 0\r\n2\r\n4 4\r\n1 1\r\n4 4\r\n0 0\r\n4 4\r\n0 0\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: Tweek\r\nCase #2: Craig\r\nCase #3: Tweek\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}