word=input()
print(word.swapcase()) # text.swapcase() -> 대소문자 반전
from datetime import date
print(date.today()) # 오늘 날짜 출력
while True: # True면 계속 도는 반복문
    line = input() # 입력 받기
    if line == '#': # '#' 나오면 break -> 그 전까지는 계속 도는 반복문
        break
    line=line.lower()
    cnt=line.count('a')+line.count('e')+line.count('i')+line.count('o')+line.count('u')
    print(cnt)
while True:
    line=input()
    if line == 'END':
        break
    print(line[::-1]) # 거꾸로 출력