#C4742. Count Vowels

    ID: 48314 Type: Default 1000ms 256MiB

Count Vowels

Count Vowels

Given a string, count the number of vowels present in it. Only the lowercase vowels a, e, i, o, and u should be counted (i.e., the check is case-sensitive). For example, in the string 'hello', the vowels are 'e' and 'o', so the output is 2. In mathematical terms, let ( S ) be the input string and ( V = {a,e,i,o,u} ) the set of vowels. Then the answer is given by [ \text{count} = \sum_{c \in S} \mathbf{1}{{c \in V}}, ] where ( \mathbf{1}{{c \in V}} ) is 1 if ( c ) is in ( V ), and 0 otherwise.

inputFormat

Input is read from stdin. It consists of a single line containing the string ( S ) whose vowels are to be counted.

outputFormat

Output to stdout the number of lowercase vowels (a, e, i, o, u) found in the input string.## sample

bcdfg
0