#!/usr/bin/python3

from collections import Counter
C = Counter(input())
v = sum(C[l] for l in "aeiou")
print (v, v + C['y'])
