{"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\"\u003eMaster Mind KongMing gave Fei Zhang a secrete master plan stashed in a pocket. The plan instructs how to deploy soldiers on the four corners of the city wall. Unfortunately, when Fei opened the pocket he found there are only four numbers written in dots on a piece of sheet. The numbers form $2×2$ matrix, but Fei didn\u0027t know the correct direction to hold the sheet. What a pity!\u003cbr\u003e\u003cbr\u003eGiven two secrete master plans. The first one is the master\u0027s original plan. The second one is the plan opened by Fei. As KongMing had many pockets to hand out, he might give Fei the wrong pocket. Determine if Fei receives the right pocket.\u003cbr\u003e\u003cimg style\u003d\"max-width:100%;\" src\u003d\"CDN_BASE_URL/89fda8df68a9e6de54d0ec801104d08e?v\u003d1714327307\"\u003e\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line of the input gives the number of test cases, $T(1≤T≤10^4)$. $T$ test cases follow. Each test case contains 4 lines. Each line contains two integers $a_{i0}$ and $a_{i1}$ ($1≤a_{i0},a_{i1}≤100$). The first two lines stands for the original plan, the $3_{rd}$ and $4_{th}$ line stands for the plan Fei opened."}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output one line containing \"\u003cb\u003eCase #x: y\u003c/b\u003e\", where x is the test case number\u003cbr\u003e(starting from 1) and $y$ is either \u003cb\u003e\"POSSIBLE\"\u003c/b\u003e or \u003cb\u003e\"IMPOSSIBLE\"\u003c/b\u003e (quotes for clarity)."}},{"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\u003e4\r\n1 2\r\n3 4\r\n1 2\r\n3 4\r\n\r\n1 2\r\n3 4\r\n3 1\r\n4 2\r\n\r\n1 2\r\n3 4\r\n3 2\r\n4 1\r\n\r\n1 2\r\n3 4\r\n4 3\r\n2 1\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase #1: POSSIBLE\r\nCase #2: POSSIBLE\r\nCase #3: IMPOSSIBLE\r\nCase #4: POSSIBLE\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}