Bob and Hannah like to play darts. They are not very good at it, so finishing a round with points takes them a very long time. Therefore, they decided to throw away the dartboard and instead place various geometric objects on the wall. During a throw, a player earns as many points as the number of objects the dart hits. To simplify the calculations, only circles, triangles, and rectangles are used as geometric objects.
Each player makes three throws. Your task is to determine the winner given the geometric objects on the wall and the results of the throws.
The first line contains the number of shapes on the wall, . The next lines (0 < S \leq 1000) describe the shapes in one of the following formats:
C x y r, where (; ) is the center of the circle, and is the radius.
R x_1 y_1 x_2 y_2, where (x_1; y_1) and (x_2; y_2) are the corners of the rectangle, with x_1 < x_2 and y_1 < y_2.
T x_1 y_1 x_2 y_2 x_3 y_3, where (x_i; y_i) are the vertices of the triangle.
The next line contains the number of games, (0 < N \leq 1000), Bob and Hannah are going to play. Each game is described by six lines containing the and coordinates of the six throws, the first three belonging to Bob and the last three to Hannah.
All rectangles have sides parallel to the and axes.
In the triangle, the three vertices are not collinear.
All coordinates are real numbers given to decimal places.
All shapes are bounded within the rectangle with corners (;) and (;).
All throws are made at least 10^{-6} away from the boundaries of any shape.
For each game, print the name of the winner (Bob or Hannah) on a separate line, or Tied if there is a tie.
Example 1