시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB16771127103269.123%

문제

Given a sentence in English, output the counts of consonants and vowels.

Vowels are letters in [’A’,’E’,’I’,’O’,’U’,’a’,’e’,’i’,’o’,’u’].

입력

The test file starts with an integer S(1 ≤ S ≤ 100), the number of sentences.

Then follow S lines, each containing a sentence - words of length 1 to 20 separated by spaces. Every sentence will contain at least one word and be comprised only of characters [a-z][A-Z] and spaces. No sentence will be longer than 1000 characters.

출력

For each sentence, output the number of consonants and vowels on a line, separated by space.

예제 입력 1

3
You can win this thing
May be too optimistic
Just try to have fun

예제 출력 1

12 6
10 8
11 5