cswork / OAOpen practice workspace

RubrikOA #3

Word Count Tool (Validate Words)

Estimated EasyJudge-ready

Topics (AI-labelled)Strings

Split the string on whitespace. A word is valid if and only if it has at least 3 ASCII characters, all of its characters are English letters or digits, and it contains at least one vowel a/e/i/o/u (either case) and at least one consonant. Count the valid words.

Input

One line containing a string s (length 0..200000; a bound added by this site). Words are split only on whitespace characters.

Output

Output the number of valid words.

Example 1

Input:

Hello world

Output:

2

Example 2

Input:

a1b xx! CAT

Output:

2

Example 3

Input:

AEI bcd u8Q

Output:

1

Editorial

Loading solution…