Karas is a legendary gambler, famous for understanding which games can be won. He is often referred to as "The Cowardly Sage" due to his guiding principle, "Never play a game you are sure you cannot win."
At the Firework Ground, two players stand in the ground's center at , surrounded by fireworks. Each firework, , is units away from the center. A straight line drawn from the center to firework will have a gradient, or slope, of .
The two players move in turns, and the game only allows these two moves:
- Circular: Choose a radius, , and activate all fireworks exactly units from the center.
- Linear: Choose a gradient, . Activate all fireworks that lie on the line passing through the ground's center with that gradient. An equation for would be .
Once a firework is activated, it's ignited in the sky and is no longer part of the field.
For each turn, a player makes one of the two allowed moves. A player must activate at least one firework per turn. If a player fails to activate a firework, they lose.
Note: Each location in the field can have , , or fireworks. For safety reasons, no move will ever activate more than two fireworks.
Given the details for the Firework Ground, determine whether or not Karas will play the game (keeping in mind that he never plays a game if there is a possibility he will lose). Karas moves first.
Input Format
The first line contains a single integer, , the number of test cases.
The first line of each test case contains a single integer, , the number of fireworks. This is followed by lines, each of which describes a firework.
For each firework, there will be three positive integers, , and .
is the distance between the firework and the center.
is the gradient of a straight line, , drawn from the firework to the center.
Constraints
Output Format
For each test case, print either Sage (if Karas decides to play), or Coward (if he does not).
Sample Input
1
3
1 1 2
2 1 2
2 2 3
Sample Output
Coward
Explanation
No matter what move Karas makes, there is a possibility he will lose:
If he activates fireworks at , his opponent will activate and win the game.
If he activates , his opponent wins by activating .
If he activates gradient , his opponent wins by activating .
If he activates gradient , his opponent wins by activating gradient .