{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003ePakhom and his friends decided to hunt for flies. Each of them took his favourite\r\nfly swatter. They crouched to a wall with \u003ci\u003en\u003c/i\u003e careless flies sitting on it and simultaneously\r\nswatted the wall so that each swatter left a mark on it. The mark of each\r\nswatter is a simple polygon with interior. No two swatter marks have common points.\r\nA fly was killed if it was situated inside or on the border of a swatter mark.\r\nHelp friends calculate a number of flies killed by each of them.\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 a number of flies \u003ci\u003en\u003c/i\u003e (1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup\u003e5\u003c/sup\u003e). The next\r\n\u003ci\u003en\u003c/i\u003e lines contain coordinates of the flies. No two flies are situated at the same point.\r\nThe next line contains a number of fly swatters \u003ci\u003em\u003c/i\u003e (1 ≤ \u003ci\u003em\u003c/i\u003e ≤ 30\u0026nbsp;000).\r\nEach of the next \u003ci\u003em\u003c/i\u003e lines describes a mark of a fly swatter. A mark is described by a number of vertices\r\nin a corresponding polygon and coordinates of these vertices in counter-clockwise order.\r\nThe total number of vertices in all polygons doesn\u0027t exceed 10\u003csup\u003e5\u003c/sup\u003e. All coordinates are integers and don\u0027t\r\nexceed 10\u003csup\u003e7\u003c/sup\u003e in their absolute value. All numbers in lines are separated by single spaces.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eOutput the number of flies killed by each fly swatter. Describe the fly swatters in the order they are\r\ngiven in the input.\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\n0 0\r\n1 1\r\n4 4\r\n3\r\n3 -2 -2 -3 -3 -2 -3\r\n3 0 0 2 0 1 1\r\n3 3 0 5 0 4 6\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\r\n2\r\n1\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}