1999 LSU Computer Science High School Programming Contest
Novice and Veteran Problem 3
UNlatin

The Dillun twins never learned PigLatin as kids. They did learn something called UNlatin though and they still use it occasionally. UNlatin is very much like PigLatin except that an "un" is used where PigLatin uses an "ay". The rules are as follows:

  1. If the word starts with a consonant, the consonant is moved to the end of the word and an "un" is appended to the word.
  2. If the word starts with a vowel, you simply append "un" to the end of the word.

All input will be one word per line. When the line you read in has the word "nevermore", you stop processing.

Sample Input Data:

sample
input
data
nevermore

Sample Output:

sample becomes amplesun
input becomes inputun
data become atadun



Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.


Clarifications:







Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.



The statements and opinions included in these pages are those of the LSU High School Programming Contest Staff only. Any statements and opinions included in these pages are not those of Louisiana State University or the LSU Board of Supervisors.
© 1999 LSU High School Programming Contest

Return to the LSU High School Programming Contest Homepage