{"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":"Tí và Tèo đang chơi trò tic-tac-toe trên một bảng kích thước \u003cspan class\u003d\"tex-span\"\u003e4 × 4\u003c/span\u003e ô vuông. Tí được đi trước và sẽ dùng ký hiệu \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003ex\u003c/span\u003e\u0027 còn Tèo đi sau và dùng ký hiệu \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eo\u003c/span\u003e\u0027.\n\nLuật chơi của trò này tương tự như cờ Caro, ban đầu bàn cờ trống. Hai người luân phiên nhau chơi từng lượt, Tí đi trước, rồi đến Tèo, ... Người thắng cuộc là người ghi được ba dấu ký hiệu thẳng hàng trước. Ba dấu gọi là thẳng hàng nếu chúng cùng nằm trên một đường ngang, dọc hoặc chéo.\n\nCho một trạng thái của bàn cờ. Tiếp theo tới lượt Tí điền \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003ex\u003c/span\u003e\u0027 vào, xác định xem lượt này Tí có thể giành chiến thắng luôn được hay không."}},{"title":"Input","value":{"format":"MD","content":"- Ghi trên bốn dòng, mỗi dòng một xâu gồm bốn ký tự \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003e.\u003c/span\u003e\u0027 (ô trống), \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003ex\u003c/span\u003e\u0027 hoặc \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eo\u003c/span\u003e\u0027. Dữ liệu đảm bảo là một trạng thái trò chơi trong thực tế."}},{"title":"Output","value":{"format":"MD","content":"- Ghi trên một dòng duy nhất, \u0027Yes\" nếu có thể, \"No\" nếu không thể."}},{"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\u003exx..\u003cbr\u003e.oo.\u003cbr\u003ex...\u003cbr\u003eoox.\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\u003eYES\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\u003ex.ox\u003cbr\u003eox..\u003cbr\u003ex.o.\u003cbr\u003eoo.x\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\u003eNO\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\u003ex..x\u003cbr\u003e..oo\u003cbr\u003eo...\u003cbr\u003ex.xo\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\u003eYES\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\u003eo.x.\u003cbr\u003eo...\u003cbr\u003e.x..\u003cbr\u003eooxx\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\u003eNO\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}