Skip to content
C

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

Input (stdin)

Output

Run your code to see output here...