[Hidden]
#### 1285. A. Majestic 10

#### Description

The movie “Magnificent 7” has become a western classic. Well, this year we have 10 coaches training the UCF programming teams and once you meet them, you’ll realize why they are called the “Majestic 10”! The number 10 is actually special in many different ways. For example, in basketball, they keep track of various statistics (points scored, rebounds, etc.) and if a player has 10+ (10 or more) in a particular stat, they call it a double.

The Problem:

Given three stats for a basketball player, you are to determine how many doubles the player has, i.e., how many of the stats are greater than or equal to 10.

#### Input

The first input line contains a positive integer, n, indicating the number of players. Each of the following n input lines contains three integers (separated by a space and each between 0 and 100, inclusive), providing the three stats for a player.
#### Output

Print each input line as it appears in the input. Then, on the following output line, print a message indicating how many stats are greater than or equal to 10:

print zilch if none of the three stats is greater than or equal to 10,

print double if one of the three stats is greater than or equal to 10,

print double-double if two of the three stats are greater than or equal to 10,

print triple-double if all three stats are greater than or equal to 10.

Leave a blank line after the output for each player.

#### Samples

#### Source

UCF2016

The Problem:

Given three stats for a basketball pla

print zilch if none of the three stats is greater than or equal to 10,

print double if one of the three stats is greater than or equal to 10,

print double-double if two of the three stats are greater than or equal to 10,

print triple-double if all three stats are greater than or equal to 10.

Leave a blank line after the output for each pla

Input
Copy

4 5 0 8 30 10 50 20 5 20 5 100 6

Output

5 0 8 zilch 30 10 50 triple-double 20 5 20 double-double 5 100 6 double

Time Limit: | 1000MS (C/C++,Others×2) |

Memory Limit: | 128MB (C/C++,Others×2) |

Special Judge: | No |

AC/Submit: | 1 / 1 |

Tags: |