#K93727. Vowels and Consonants Counter
Vowels and Consonants Counter
Vowels and Consonants Counter
Given a string S, your task is to count the number of vowels and consonants in the string. Vowels are defined as \(a, e, i, o, u\) (both lowercase and uppercase) and all other letters (alphabetical characters) are considered as consonants. Non-alphabetical characters should be ignored.
For example, if the input string is "hello world!", the output should be 3 7 indicating 3 vowels and 7 consonants.
inputFormat
The input consists of a single line containing the string S. The string may contain spaces, punctuation, and other characters.
outputFormat
Output two integers separated by a space: the number of vowels and the number of consonants in the string, respectively.
## samplehello world!
3 7