Agent Smith transmits secret information to a secret center: a single strictly positive integer. To encode the number he replaces each digit with the corresponding word and concatenates the words. For example, 42 may become FOURTWO.
Smith knows four languages (numbered 1 to 4). In these languages the digits 0 through 9 are spelled as follows (all letters are capital Latin, ASCII codes 65-90):
| Digit | Language 1 | Language 2 | Language 3 | Language 4 |
|---|---|---|---|---|
| 0 | ZERO | SIFIR | ZERO | ZERO |
| 1 | UNU | BIR | JEDEN | ONE |
| 2 | DOI | IKI | DWA | TWO |
| 3 | TREI | UC | TRZY | THREE |
| 4 | PATRU | DORT | CZTERY | FOUR |
| 5 | CINCI | BES | PIEC | FIVE |
| 6 | SASE | ALTI | SZESC | SIX |
| 7 | SAPTE | YEDI | SIEDEM | SEVEN |
| 8 | OPT | SEKIZ | OSIEM | EIGHT |
| 9 | NOUA | DOKUZ | DZIEWIEC | NINE |
After encoding, he adds noise: redundant capital Latin letters. Any letters (including letters already used in the code) may be inserted in any quantity at any positions.
Write a program that reads such a code and finds the largest number it could encode, under two separate assumptions:
The input contains several lines; process each line independently. Each line contains at most $10^5$ capital Latin letters -- one code. The total input size is less than 1 MB.
For each input line, output two integers separated by a single space -- the largest numbers under the two assumptions above, in that order.
Each code is guaranteed to come from a correct positive (non-zero) integer, so both answers are always positive. Print them without leading zeroes.