{"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\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":"HTML","content":"\u003cp\u003eOberyn Martell and Gregor Clegane are dueling in a trial by combat. The fight is extremely important, as the life of Tyrion Lannister is on the line. Oberyn and Gregor are measuring their skill in combat the only way the two best fighters in Westeros can, a match of Starcraft. The one who supervises the match in none other than Por Costel the pig.\u003c/p\u003e\u003cp\u003eOberyn and Gregor are both playing the Terrans, and they confront each other in the middle of the map, each with an army of Marines. Unfortunately, pigs cannot distinguish colors that well, that is why Por Costel can\u0027t figure out which marine belongs to which player. All he sees is \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/991f81a208dc8412840eaec877974cb3?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e marines in the middle of the map and, from time to time, two marines shooting each other. Moreover, it might be the case that Por Costel\u0027s imagination will play tricks on him and he will sometimes think two marines are shooting each other even though they are not.\u003c/p\u003e\u003cp\u003ePeople are starting to question whether Por Costel is the right person for this important job. It is our mission to remove those doubts. You will be given Por Costel\u0027s \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/9dc9e70dcd6afa4c4d226e8f165ad0f0?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e observations. An observation consists in the fact that Por Costel sees that marine \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/b175fd8c93e4727d791f357df276e6a7?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e and marine \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/34013c8891c4033e19e31c8b303f5a82?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e are shooting each other. We know that marines in the same team (Oberyn\u0027s or Gregor\u0027s) can never shoot each other. Your task is to give a verdict for each observation, saying if it is right or not.\u003c/p\u003e\u003cp\u003eAn observation of Por Costel\u0027s is considered correct if, considering this observation true and considering all the \u003cspan class\u003d\"tex-font-style-bf\"\u003ecorrect\u003c/span\u003e observations up to this point true, there is a way to split the marines in \"Oberyn\u0027s team\" and \"Gregor\u0027s team\" such that no two marines from the same team have ever shot each other. Otherwise, the observation is considered incorrect.\u003c/p\u003e\u003cp\u003e\u003cspan class\u003d\"tex-font-style-it\"\u003e\"Elia Martell!!! You rushed her! You cheesed her! You killed her SCVs!\"\u003c/span\u003e\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe input file \u003cspan class\u003d\"tex-font-style-bf\"\u003emeciul.in\u003c/span\u003e will contain, on its first line, the number of tests \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/bfd224968ce516f58bc4320c2b68776f?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e (\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/c27a0508694334ebbb06a1db8cc4778b?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e). A test has the following structure: the first line contains integers \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/991f81a208dc8412840eaec877974cb3?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e (\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/ed6846029b9176a0f3c238d667fa9aa6?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e) and \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/9dc9e70dcd6afa4c4d226e8f165ad0f0?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e (\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/ac277bf831ca9cc7889a5f13f0e6ccfa?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e) and the next \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/9dc9e70dcd6afa4c4d226e8f165ad0f0?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e lines each contain a pair of integers \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/b175fd8c93e4727d791f357df276e6a7?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e and \u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/34013c8891c4033e19e31c8b303f5a82?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e (\u003cimg align\u003d\"middle\" class\u003d\"tex-formula\" src\u003d\"CDN_BASE_URL/ef61dd6768d0db2886bb3e44b3a559fb?v\u003d1714702721\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e) describing an observation of Por Costel\u0027s.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eThe output file \u003cspan class\u003d\"tex-font-style-bf\"\u003emeciul.out\u003c/span\u003e will contain one line for each of Por Costel\u0027s observations, on each test. The line will contain \"YES\" if the observation is correct and \"NO\" otherwise. It is not necessary to leave extra spacing between the outputs of different test cases.\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\u003e1\n3 3\n1 2\n2 3\n1 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\nYES\nNO\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}