{"trustable":false,"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\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"有一个 n*n 的国际象棋棋盘。将白后放在 (1,1),黑后放在 (1,n),其余位置全都是中立的卒。 \n双方交替移动。白方先手。 \n每次移动,后(Queen)可以朝八个方向(上下左右对角线)之一移动任意格,直到碰到另外一个棋子,然后吃掉这个棋子。注意,在本题中,每次移动必须吃掉一个棋子。 \n当你的皇后被吃了或者你没有棋子可以吃了,就输了。 \n给出棋盘大小,请问哪方会赢。\n- 如果黑方会赢,请输出 `black`。\n- 如果白方会赢,请输出 `white`,并在下一行输出两个整数 (r,c),表示白方第一步应该移动到哪里才能保证胜利。如果有多解,请输出 r 最小的解,如果还有多解,请输出 c 最小的解。"}},{"title":"Input","value":{"format":"MD","content":"\u003cp\u003eThe input contains a single number \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e2 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e9\u003c/sup\u003e\u003c/span\u003e) — the size of the board.\u003c/p\u003e"}},{"title":"Output","value":{"format":"MD","content":"\u003cp\u003eOn the first line print the answer to problem — string \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ewhite\u003c/span\u003e\" or string \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eblack\u003c/span\u003e\", depending on who wins if the both players play optimally. \u003c/p\u003e\n\u003cp\u003eIf the answer is \"\u003cspan class\u003d\"tex-font-style-tt\"\u003ewhite\u003c/span\u003e\", then you should also print two integers \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003er\u003c/i\u003e\u003c/span\u003e and \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ec\u003c/i\u003e\u003c/span\u003e representing the cell \u003cspan class\u003d\"tex-span\"\u003e(\u003ci\u003er\u003c/i\u003e, \u003ci\u003ec\u003c/i\u003e)\u003c/span\u003e, where the first player should make his first move to win. If there are multiple such cells, print the one with the minimum \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003er\u003c/i\u003e\u003c/span\u003e. If there are still multiple squares, print the one with the minimum \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ec\u003c/i\u003e\u003c/span\u003e.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"MD","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e2\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003ewhite\u003cbr\u003e1 2\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e3\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eblack\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"MD","content":"\u003cp\u003eIn the first sample test the white queen can capture the black queen at the first move, so the white player wins.\u003c/p\u003e\n\u003cp\u003eIn the second test from the statement if the white queen captures the green pawn located on the central vertical line, then it will be captured by the black queen during the next move. So the only move for the white player is to capture the green pawn located at \u003cspan class\u003d\"tex-span\"\u003e(2, 1)\u003c/span\u003e. \u003c/p\u003e\n\u003cp\u003eSimilarly, the black queen doesn\u0027t have any other options but to capture the green pawn located at \u003cspan class\u003d\"tex-span\"\u003e(2, 3)\u003c/span\u003e, otherwise if it goes to the middle vertical line, it will be captured by the white queen.\u003c/p\u003e\n\u003cp\u003eDuring the next move the same thing happens — neither the white, nor the black queen has other options rather than to capture green pawns situated above them. Thus, the white queen ends up on square \u003cspan class\u003d\"tex-span\"\u003e(3, 1)\u003c/span\u003e, and the black queen ends up on square \u003cspan class\u003d\"tex-span\"\u003e(3, 3)\u003c/span\u003e. \u003c/p\u003e\n\u003cp\u003eIn this situation the white queen has to capture any of the green pawns located on the middle vertical line, after that it will be captured by the black queen. Thus, the player who plays for the black queen wins.\u003c/p\u003e"}}]}