Let S be a set of points on a 2-dimensional plane. Initially, S is an empty set. Let convexHull(S) be the subset of S, which is the vertices of the convex hull of S without any three collinear points.
There are Q queries, each of the either following type:
- add(x, y) - Adding a point (x, y) to S. It is guaranteed that no two points share the same xcoordinate or the same y-coordinate.
- findHeavy(x1, y1, x2, y2) - Point (x1, y1) and point (x2, y2) are guaranteed to be distinct points in convexHull(S). It is also guaranteed that this query is called when convexHull(S) contains at least three points. Suppose a robot is located at (x1, y1) and the robot wants to go to (x2, y2). He can only traverse between the edges of the convex hull of S. Let cw be the number of points in convexHull(S) traversed by the robot if the robot moves in clockwise direction, and ccw be the number of points in convexHull(S) traversed by the robot if the robot moves in counter-clockwise direction. If cw ≥ ccw, output "CW", otherwise output "CCW".