Reform of the English Language
April 1, 20?? marks the beginning of a reform in the English language, designed to simplify learning for both foreigners and English schoolchildren. As part of this reform, four letters—C, Q, W, and X—will be removed from the alphabet. On computer keyboards, these will be replaced by keys that launch programs like Word and eXcel. The letter c will be replaced by s when it appears before e, i, or y, and by k in all other cases. The letter q will be replaced by k, the combination qu by kv, x by ks, and w by v. Additionally, the combination ph will be written as f, you and oo as u, ee as i, and th as z. Furthermore, all double consonants, including those formed after replacements, will be reduced to single consonants. For instance, apple will become aple.
Given the scope of this reform, a significant amount of text will need to be processed. Your task is to write a program that performs this transformation.
Note for the Curious
This task is inspired by several humorous essays:
The European Union commissioners have announced that English will be adopted as the preferred language for European communications, rather than German. As part of the negotiations, Her Majesty's Government acknowledged that English spelling could be improved and has agreed to a five-year phased plan for what will be known as EuroEnglish (Euro for short).
In the first year, "s" will replace the soft "c". Sertainly, sivil servants will resieve this news with joy. Additionally, the hard "c" will be replaced with "k". This will not only clear up confusion but also allow typewriters to have one less letter.
There will be growing public enthusiasm in the second year when the troublesome "ph" is replaced by "f". This change will make words like "fotograf" 20 percent shorter.
By the third year, public acceptance of the new spelling is expected to reach a level where more complicated changes are possible. Governments will encourage the removal of double letters, which have always been a deterrent to accurate spelling. Also, everyone will agree that the horrible mess of silent "e"s in the language is disgraceful, and they will be removed.
By the fourth year, people will be receptive to changes such as replacing "th" with "z" and "w" with "v". During the fifth year, the unnecessary "o" can be dropped from words containing "ou", and similar changes would of course be applied to other combinations of letters.
After the fifth year, we will have a really sensible written style. There will be no more troubles or difficulties, and everyone will find it easy to understand each other.
The dream will finally come true.
A Plan for the Improvement of English Spelling by M. J. Shields (Mark Twain?)
For example, in Year 1, the useless letter "c" would be dropped and replaced either by "k" or "s," and likewise, "x" would no longer be part of the alphabet. The only case in which "c" would be retained would be the "ch" formation, which will be addressed later. Year 2 might reform "w" spelling, so that "which" and "one" would take the same consonant, while Year 3 might abolish "y", replacing it with "i", and Year 4 might fix the "g / j" anomaly once and for all.
Generally, the improvement would continue year by year, with Year 5 doing away with useless double consonants, and Years 6-12 or so modifying vowels and the remaining voiced and unvoiced consonants. By Year 15 or so, it would finally be possible to make use of the redundant letters "c," "y," and "x"—by now just a memory in the minds of old dodderers—to replace "ch," "sh," and "th" respectively.
Finally, then, after some 20 years of orthographical reform, we would have a logical, coherent spelling in use throughout the English-speaking world.
Input
The input file contains English text, without word breaks. Each line does not exceed 100 characters.
Output
Output the same text, but modified according to the reform. If the first letter of a replaced letter combination was capitalized, then the first letter of the replacement should also be capitalized. The second letter in the replacements x → ks, qu → kv should always be lowercase.