| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 0.5 초 | 512 MB | 2021 | 963 | 867 | 48.140% |
There are English words that you want to translate them into pseudo-Latin. To change an English word into pseudo-Latin word, you simply change the end of the English word like the following table.
| English | pseudo-Latin |
|---|---|
| -a | -as |
| -i, -y | -ios |
| -l | -les |
| -n, -ne | -anes |
| -o | -os |
| -r | -res |
| -t | -tas |
| -u | -us |
| -v | -ves |
| -w | -was |
If a word is not ended as it stated in the table, put ‘-us’ at the end of the word. For example, a word “cup” is translated into “cupus” and a word “water” is translated into “wateres”.
Write a program that translates English words into pseudo-Latin words.
Your program is to read from standard input. The input starts with a line containing an integer, n (1 ≤ n ≤ 20), where n is the number of English words. In the following n lines, each line contains an English word. Words use only lowercase alphabet letters and each word contains at least 3 and at most 30 letters.
Your program is to write to standard output. For an English word, print exactly one pseudo-Latin word in a line.
2 toy engine
toios engianes
3 cup water cappuccino
cupus wateres cappuccinos
ICPC > Regionals > Asia Pacific > Korea > Asia Regional - Seoul 2018 D번