{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eScrooge McDuck owns a circular island of radius \u003ci\u003eR\u003c/i\u003e centered at the origin.\r\nHe wants to build a square tower there to keep all his wealth.\r\nThe wealth is quite huge, so the square of the foundation should be inscribed in the circle of the island. After reading a lot of popular magazines, Mrs. Beakley claimed\r\nthat according to feng shui, the entrance to the tower should be situated at the point (\u003ci\u003ex\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e,\u0026nbsp;\u003ci\u003ey\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e), and the exit should be at the point (\u003ci\u003ex\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e,\u0026nbsp;\u003ci\u003ey\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e). Of course, entrance and exit points should lie on the border of tower\u0027s foundation. Scrooge told you all these numbers and wants to know if it is possible to satisfy Mrs. Beakley\u0027s requirements.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe first line contains an integer \u003ci\u003eT\u003c/i\u003e\u0026nbsp;— the number of test cases \u003cnobr\u003e(1 ≤ \u003ci\u003eT\u003c/i\u003e ≤ 1000)\u003c/nobr\u003e. Each of the next \u003ci\u003eT\u003c/i\u003e lines contains five integers separated by spaces: \u003ci\u003eR\u003c/i\u003e, \u003ci\u003ex\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e, \u003ci\u003ey\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e, \u003ci\u003ex\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e, \u003ci\u003ey\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e.\r\n1\u0026nbsp;≤\u0026nbsp;\u003ci\u003eR\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;10000. Points (\u003ci\u003ex\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e,\u0026nbsp;\u003ci\u003ey\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e) and (\u003ci\u003ex\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e,\u0026nbsp;\u003ci\u003ey\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e) are situated inside the circle.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eFor each of the \u003ci\u003eT\u003c/i\u003e cases output “YES” if the tower can be built,\r\nand “NO” otherwise.\u003c/div\u003e\u003c/div\u003e"}},{"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 1 1 1 -1\r\n2 1 1 0 0\r\n1 1 0 -1 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\r\nNO\r\nYES\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}