'''
Created on Sep 19, 2012

@author: ola
'''
def isvowel(ch):
    if "aeiou".count(ch) >= 1:
        return True
    else:
        return False

def isconsonant(ch):
    return not isvowel(ch)

def transform(word):
    ret = word[0]
    for i in range(1,len(word)):
        if isvowel(word[i]):
            pass
        elif isconsonant(word[i]) and isconsonant(word[i-1]):
            pass
        else:
            ret = ret + word[i]
    return ret

def getMessage(original):
    ret = ""
    for word in original.split():
        ret = ret + " " + transform(word)    
    return ret.strip()

print transform("poooooo")
print transform("dogma")