The script of the battlefield reporter P52373


Statement
 

pdf   zip

html

The charismatic presenter of the TV show Takeshi’s castle [Footnote: The problems of this FME contest were inspired by the Spanish version of this Japanese TV show. Some of the references are too difficult to be properly translated. ] pronounces too well the simple ar, that is, not as it was an el. To solve this problem, Takeshi has asked you to write a program that prints the script with all the simple ars replaced by els. For the sake of simplicity, we consider that an ar is simple if and only if is preceded by a vowel and does not have any consonant after it, always in the same word.

Input

Input consists of several lines. The first character of each line is an uppercase letter. There may also be uppercase letters at the beginning of some words. Every line ends with ‘.’, ‘?’ or ‘!’. The end of the input is marked with a line that only consists of the word “END”.

Output

For each line of the input, print the line with the corrections, that is, with the simple ars replaced by els.

Observation

Do not try to use knowledge on any language to write your program. The private test data may have any text that fulfills the input requirements.

Public test cases
  • Input

    Hola! Soy Pepe Livingstone, pariente lejano de Richi.
    El tiene carisma, pero yo siempre fui rapido ligando.
    Te gusta mi sombrero de aventurero?
    Me lo compre en un 20 duros armenio, o quiza ruso. Era barato, a que si?
    Ir a freir esparragos, dices? Ir, a freir? No, por favor!
    Te vienes a mi caravana?
    END
    

    Output

    Hola! Soy Pepe Livingstone, paliente lejano de Richi.
    El tiene calisma, pelo yo siempre fui rapido ligando.
    Te gusta mi sombrelo de aventulelo?
    Me lo compre en un 20 dulos armenio, o quiza ruso. Ela balato, a que si?
    Il a freil esparragos, dices? Il, a freil? No, pol favol!
    Te vienes a mi calavana?
    
  • Information
    Author
    Ricardo Martín
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++
    User solutions
    C++