Problem C
면접 대비시간 제한1초메모리 제한2048 MB
각 단어에서 c를 뒤에 오는 글자에 따라 k 또는 s로 바꾸고, ch는 c로 바꾼다.
문제
The English language is infamous for having an inconsistent spelling system. One feature in the spelling system that you are interested in is the usage of the letter c. The letter c can be pronounced in multiple different ways, which might be confusing for the speaker. However, there are some simplified patterns to help speakers determine which pronunciation to use.
- It is pronounced as ⟨k⟩ if it is either: followed by
a,o, oru; followed by a consonant letter other thanhandy; or at the end of a word. The consonant letters are the English letters excluding the vowel letters:a,e,i,o, andu. - It is pronounced as ⟨s⟩ if it is followed by
e,i, ory. - The pair of adjacent letters
chis pronounced with a unique sound ⟨c⟩.
You are given words: . For each given word, simplify the spelling system by replacing every occurence of c into k or s (for the sound ⟨k⟩ and ⟨s⟩ respectively) according to the patterns above and every occurence of ch into c.
입력
The first line consists of an integer ().
Each of the next lines consists of a string . String consists of only lowercase English letters, and its length is between and .
출력
For each word, output a single line containing a string that represents the simplified spelling system of string according to the patterns above.