#C6168. Count Vowels and Consonants
Count Vowels and Consonants
Count Vowels and Consonants
Given a string S
that may contain alphabets, digits, and other characters, your task is to count the number of vowels and consonants present. Only consider alphabetic characters. Here, vowels are defined as \(\{a, e, i, o, u\}\) (both uppercase and lowercase), and any other alphabetic character is considered a consonant.
You need to read the input from stdin and output the result to stdout. The result should consist of two integers: the first is the number of vowels and the second is the number of consonants, separated by a space.
inputFormat
The input consists of a single line containing the string S
.
outputFormat
Output two integers separated by a space: the count of vowels and the count of consonants in the string S
.## sample
HelloWorld
3 7
</p>