{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"Given set of points in the plane, your task is to draw a polygon using the points. You have to use all the points. To be more specific, each point of the set has to be a vertex of the polygon, and the polygon must not have any other vertices. No two line segments of the polygon may have any point in common, except for the middle vertex of two consecutive line segments. For example, given the points on the left-hand side, a valid polygon is shown on the right-hand side:\n\n\n\n| ![Given Points](CDN_BASE_URL/318e7817ee4b569b0ace971dbc76cf81?v\u003d1714594235) | ![Valid Solution](CDN_BASE_URL/f781bc4ba01e824e28eb46f00b294929?v\u003d1714594235) |\n| :------: | :------: |\n\n\n\nYou can assume that, no two points will share the same location."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026le; 100)**, denoting the number of test cases.Each case starts with a line containing an integer **n (3 \u0026le; n \u0026le; 2000)**, denoting the number of points. The next line contains the co-ordinates of the points. Each point is specified by two integer **x y** in the range **[-10\u003csup\u003e4\u003c/sup\u003e, 10\u003csup\u003e4\u003c/sup\u003e]**."}},{"title":"Output","value":{"format":"MD","content":"For each case, print the case number in a single line first. In the next line print `Impossible` if no solution can be found. Otherwise print a permutation of the numbers **0** to **n-1**. Each of these numbers represents the index of a point, in the same order as given in the input. When drawing line segments between consecutive points in the order given by this permutation, the result must be a valid polygon. Insert a single space between two integers."}},{"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\u003e2\n4\n0 0 2 0 0 1 1 0\n5\n0 0 10 0 10 5 5 -1 0 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1:\n0 3 1 2\nCase 2:\n2 1 3 0 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"MD","content":"This is a special judge problem; wrong output format may cause `wrong answer`."}}]}