#CCBOTPBA0000053. Giải mã số hiệu nhỏ (Decode Small Numeric Codes)
Giải mã số hiệu nhỏ (Decode Small Numeric Codes)
Decode Small Numeric Codes
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
A system records integer codes. Each code is between and and represents one English word: means ZERO, means ONE, means TWO, and means THREE. Decode the codes in their original order. If , produce no output lines.
Input
The first line contains the integer . If , the remaining input contains exactly integers , separated by spaces or newlines.
Output
For each code, print its corresponding English word on a separate line, in the same order; print nothing if .
Subtasks
- Subtask 1 (20%): .
- Subtask 2 (30%): .
- Subtask 3 (50%): .
Examples
Example 1
Input:
4
0 3 1 2
Output:
ZERO
THREE
ONE
TWO
Explanation: The codes , , , and map to ZERO, THREE, ONE, and TWO, respectively. Print these on four lines in input order.
Example 2
Input:
3
2 2 2
Output:
TWO
TWO
TWO
Explanation: All three codes are , so TWO is printed three times. Repeated codes are not removed.
Example 3
Input:
0
Output:
Explanation: There are zero codes, so the loop runs zero times and prints nothing.