#C14134. Remove Vowels and Count
Remove Vowels and Count
Remove Vowels and Count
Given a string, remove all the vowels (a, e, i, o, u in both lowercase and uppercase) from it and count how many vowels were removed. Formally, if the input string is represented as \( S \), you are to generate a new string \( S' \) such that \( S' = \{ c \in S : c \notin \{a,e,i,o,u,A,E,I,O,U\} \} \) and count \( n \), the number of characters removed, i.e., the number of vowels in \( S \). The program reads from standard input and writes to standard output. The first line of the output should be the modified string with vowels removed (if all vowels are removed, this line may be empty), and the second line should be the integer count of removed vowels.
inputFormat
The input consists of a single line containing a string \( S \) which may include letters, digits, spaces, and punctuation.
outputFormat
The output should be printed in two lines. The first line is the string after removing all vowels. The second line is the count of vowels that were removed.
## samplehello world
hll wrld
3
</p>