시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 21 8 7 46.667%

문제

Your job is to translate English phrases into Pig Latin. There are only two rules you need to know. First, for words beginning with a consonant or consonant cluster, you must cut off the consonant or consonant cluster, attach it to the end of the word, and add the letters “a” and “y” at the end of the word. Second, for words beginning with a vowel, you must simply add the letters “y”, “a”, and “y” at the end of the word. We will consider “y” to be a vowel for this problem. You may assume the words will consist of only lower case letters.

The size of each line will be no longer than 200 characters.

입력

Your program must read a list of phrases from standard input (which is preceded by the number of phrases).

출력

Translate the phrases into Pig Latin, and display the translation.

예제 입력

2
twist of fate
hotter than the fourth of july

예제 출력

isttway ofyay atefay
otterhay anthay ethay ourthfay ofyay ulyjay

힌트