시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
0.5 초 512 MB 130 70 61 53.043%

문제

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.

예제 입력 1

2
toy
engine

예제 출력 1

toios
engianes

예제 입력 2

3
cup
water
cappuccino

예제 출력 2

cupus
wateres
cappuccinos