#C13716. Count Vowels in Words

    ID: 43285 Type: Default 1000ms 256MiB

Count Vowels in Words

Count Vowels in Words

Given an input sentence, your task is to count the vowels in each word. Each word must be processed by removing any non-alphabetical characters and converting it to lowercase. The vowels to be counted are \(a, e, i, o, u\) (in both cases). The final output should be a dictionary (or map) in the order of word appearance with each key being the cleaned word and its value being the vowel count.

inputFormat

The input consists of a single line string (which may be empty) containing a sentence with words separated by spaces.

outputFormat

Output a dictionary represented as a string. The dictionary keys should be the words (in lowercase, stripped of non-alphabet characters) in the order they appear, and the values should be the corresponding number of vowels in each word. The format should match exactly like the following example: {"hello": 2, "world": 1}.

## sample
Hello world
{"hello": 2, "world": 1}