3012: Bovine Latin 牛语
题目描述
The cows have heard that the pigs use a secret language called "Pig Latin" when they want to communicate with each other without Farmer John being able to understand what they are saying. Thinking this is an excellent idea, they have invented their own version, aptly called Bovine Latin.
Converting an English word to a Bovine Latin word is quite simple. For words that start with a vowel ('a', 'e', 'i', 'o' or 'u'), "cow" is added to the end of the word; for example, "udder" becomes "uddercow". For words that do not begin with a vowel, the first letter is moved to the end of the word, and "ow" is added; e.g., "farmer" becomes "armerfow". So "the cows escape at dawn" becomes "hetow owscow escapecow atcow awndow." The cows fervently believe that FJ will not understand this subterfuge.
Never known as enthusiastic linguists, the cows find this translation quite tedious and thus have asked you to write a program that will take single words and translate them into Bovine Latin. They will provide you with N (1 ≤ N ≤ 100) words to translate; word lengths range from 3 to 40 letters.
输入
* Line 1: A single integer: N
* Lines 2..N + 1: One word per line.
输出
* Lines 1..N: The Bovine Latin translations of the given words
样例输入 复制
5
udder
farmer
milk
aaa
zzz
样例输出 复制
uddercow
armerfow
ilkmow
aaacow
zzzow