vocal = 0
konsonan = 0

vowel = {'a', 'e', 'i', 'u', 'o'}

total_line = int(input())

for i in range(total_line):
    line = input()
    for char in line.lower():
        if char.isalpha():
            if char in vowel:
                vocal += 1
            else:
                konsonan += 1

print("Number of vowels: ", vocal)
print("Number of consonants: ", konsonan)# your code goes here