#C10631. Age Categorization

    ID: 39858 Type: Default 1000ms 256MiB

Age Categorization

Age Categorization

You are given several test cases. In each test case, the first number denotes N, the number of ages to process, followed by N integers representing ages. Your task is to categorize each age into one of four groups according to the following rules:

  • If \(0 \leq \text{age} \leq 12\), the category is Child.
  • If \(13 \leq \text{age} \leq 17\), the category is Teen.
  • If \(18 \leq \text{age} \leq 59\), the category is Adult.
  • If \(\text{age} \geq 60\), the category is Senior.

Process each test case and output the corresponding categories in order, with a single space between categories for each test case, and each test case's result on a new line.

inputFormat

The first line of input contains an integer \(T\) representing the number of test cases. Each of the next \(T\) lines contains a test case. For each test case, the first integer \(N\) denotes the number of ages, followed by \(N\) space-separated integers representing the ages.

outputFormat

For each test case, output a single line containing the age categories corresponding to the given ages. The categories should be separated by a single space.

## sample
1
5 3 16 45 67 8
Child Teen Adult Senior Child

</p>