The first line contains two integersand
.
Each of the followinglines describes a vertex on the convex polygon with two integers x and y
, indicating the coordinates of a vertex on the polygon. All these vertices are given in counter-clockwise order and any three of them are not collinear.
Then the followinglines contain m different points outside the polygon describing all legal positions to install illuminants. The i-th line contains two integers
and
![]()
, indicating the coordinates of the
-th position. All these positions would not lie in some extension lines for the sides of the polygon.
If it is impossible to light up all exterior boundaries of the polygon, output a single line with a single integer.
Otherwise output two lines. Firstly, output a line with a single integer, representing the least number of illuminants needed to light up all the boundaries. Then, output a line with
space-separated distinct integers, describing a feasible scheme, each of which is the index of a selected position.
All feasible schemes are allowed, so you can output any of them.