'''
Created on Feb 2, 2012

@author: student
'''
def isVowel (ch):
    return 'aeiou'.count(ch) > 0


def countVowels (st):
    ret = 0
    for ch in st:
        if isVowel(ch):
            ret = ret + 1
    return ret


def compress (word):
    if countVowels(word) == len(word):
        return word
    ret = ''
    previous = 'a'
    for ch in word:
        if isVowel(previous) and not isVowel(ch):
            ret = ret + ch
        previous = ch    
    return ret


def getMessage(original):
    """ 
    return String that is 'textized' version of String 
    parameter original
    """ 
    return compress (original)
