# -*- coding: cp1251 -*-

# Çàäàíèå 10: èíòåðàêòèâíûé ïîäñ÷åò ãëàñíûõ.
# ÓÑËÎÂÈÅ:
# Íàïèñàòü ïðîãðàììó (python script), êîòîðàÿ ïðè çàïóñêå áóäåò
# çàïðàøèâàòü ïîëüçîâàòåëÿ ââåñòè ïðîèçâîëüíóþ ñòðîêó è
# âûäàâàòü â îòâåòå êîëè÷åñòâî ãëàñíûõ áóêâ.
# Ïðèìå÷àíèå:
# - äëÿ ðó÷íîãî ââîäà èñïîëüçóåì âñòðîåííóþ ôóíêöèþ raw_input();
# - äëÿ ïðîñòîòû íà âõîä ïðèíèìàåì ñòðîêó èç áóêâ ëàòèíñêîãî àëôàâèòà;
# - íàáîð ãëàñíûõ ïðèíèìàåì çà 'a', 'e', 'i', 'o', 'u';
# - ïðîãðàììà äîëæíà áûòü íå÷óâñòâèòåëüíà ê ðåãèñòðó.
# ÂÕÎÄ: ñòðîêà (ðó÷íîé ââîä ïîëüçîâàòåëåì)
# ÂÛÕÎÄ: ñòðîêà âèäà:
# "The string contains 2 vowels" - åñëè ãëàñíûå ïðèñóòñòâóþò,
# "The string doesn't contain vowels" - â ïðîòèâíîì ñëó÷àå.
# Ïðèìåð:
# python ivowels.py - çàïóñê
# Âûâîä:
# "Please, enter your string: "
# "wHAt Do yOU wANt fRom ME?"
# "The string contains 7 vowels"
# "Continue? (yes/no) "
# "maybe"
# "Please, enter corrent answer. Continue? (yes/no) "
# "yes"
# "Hurray!"
# "Please, enter your string: "
# "HHHMMMMM..."
# "The string doesn't contain vowels"
# "Continue? (yes/no) "
# "no"
# "It was nice to count your #vowels!"
# =========================================================================


print "==== Task 10: interactive vowels counting   ===="


check_str = "aeiou"

def vowels_count(arg):
    res = 0
    low_case_str = input_str.lower()
    for ch in low_case_str:
        if ch in check_str:
            res +=  1
    return res

y = "yes"
n = "no"

answer = y
while True:
    if answer == None:     
        answer = raw_input()
    
        if answer == n:
            print "Bye-Bye!"
            break
    
        if answer <> y:
            print "Please, enter corrent answer. Conti
) "
            answer = None
            continue
            
        print "Hurray! :-)"
             
    print "Please, enter your string: "
    input_str = raw_input()
    res = vowels_count(input_str);
    if bool(res):
        print "The string contains", res, "vowels"
    else:
        print "The string doesn't contain vowels"
        
    answer = None
    print "Continue? (yes/no) "    
    
    

raw_input() 
    
    
    

       
    







        
            
            














nue? (yes/no