'''
Created on Oct 24, 2016

@author: Susan
'''
def isVowel(letter):
    return letter.lower() in "aeiou"

def wordWithMostVowels(words):
    maxcnt = 0
    maxword = ""
    #cnt = 0
    for word in words:
        cnt = 0
        for letter in word:
            if isVowel(letter):
                cnt += 1
        if cnt > maxcnt:
            maxcnt = cnt
            maxword = word
    return maxword


if __name__ == '__main__':
    phrase = "this is a really long sentence of curious words"
    print phrase
    words = phrase.split()
    print wordWithMostVowels(words)