Count Vowels and Consonants
Easyjavapythonccppjavascript
Given a string containing English letters and spaces, count the number of vowels and the number of consonants. Vowels are a e i o u in either case; every other English letter is a consonant. Spaces and other characters are ignored.
Input Format
A single line containing the string S.
Output Format
Print two lines: Vowels = X Consonants = Y
Example 1
Input
hello world
Output
Vowels = 3 Consonants = 7
Explanation: The vowels are e, o, o; all other letters are consonants.
- 1 <= length of S <= 100000
- S contains only English letters and spaces.