The contest area for the programming competition at Semnan University is a convex polygon with sides. You will be asked questions. In each question, the coordinates of a student are given, and you need to determine whether the student is inside the contest area or not.
The first line of input contains a positive integer , representing the number of vertices of the polygon that defines the contest area in counter clockwise order.
The i-th line of the next lines contain two integers, and , representing the coordinates of i-th vertex of the polygon in order.
The following line contains the integer , indicating the number of students.
again In next lines, the i-th line contains two integers, and , representing the coordinates of a student.
For each student, print "IN" if they are within the contest area, or "OUT" if they are not.