All problems

Problem 47

Count Vowels and Consonants

Easy · 10 pts · String

Problem

You are given a string S of lowercase English letters. Count how many of its characters are vowels and how many are consonants. The vowels are a, e, i, o and u; every other letter is a consonant. Each character is counted as many times as it appears. Print the number of vowels first, then the number of consonants.

Input

A single string S of lowercase English letters.

Output

Print the number of vowels and the number of consonants, separated by a space.

Constraints

1 <= |S| <= 100000

Example input

programming

Example output

3 8

Explanation

"programming" has 11 letters. The vowels are o, a and i, which is 3, and the remaining 11 - 3 = 8 letters are consonants. So the output is 3 8.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Reverse a String Next: Reverse Words in a Sentence