#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 nn integer codes. Each code is between 00 and 33 and represents one English word: 00 means ZERO, 11 means ONE, 22 means TWO, and 33 means THREE. Decode the codes in their original order. If n=0n=0, produce no output lines.

Input

The first line contains the integer nn. If n>0n>0, the remaining input contains exactly nn integers c1,c2,…,cnc_1,c_2,\ldots,c_n, 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 n=0n=0.

Subtasks

  • Subtask 1 (20%): 0≤n≤20, ci∈{0,1}0\le n\le20,\ c_i\in\{0,1\}.
  • Subtask 2 (30%): 0≤n≤1000, ci∈{0,1,2,3}0\le n\le1000,\ c_i\in\{0,1,2,3\}.
  • Subtask 3 (50%): 0≤n≤105, ci∈{0,1,2,3}0\le n\le10^5,\ c_i\in\{0,1,2,3\}.

Examples

Example 1

Input:

4
0 3 1 2

Output:

ZERO
THREE
ONE
TWO

Explanation: The codes 00, 33, 11, and 22 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 22, 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.