This page is still under construction.

Parts of this page are still being built. What you see may change.

Count Me In

Time limit1sMemory limit256 MB

Summary
Count the vowels and consonants in each of up to 100 given English sentences.
Level

Easy1 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

You are given English sentences. For each sentence, count how many consonants and how many vowels it contains.

The vowels are the ten letters AA, EE, II, OO, UU, aa, ee, ii, oo, uu. Every other letter counts as a consonant, so yy and YY are consonants because they are not in that list. Spaces count as neither.

Input

The first line has the number of sentences SS (1≤S≤1001 \le S \le 100).

The next SS lines each hold one sentence. A sentence is a list of words separated by single spaces, and each word has length between 11 and 2020. Every sentence holds at least one word and uses only uppercase letters, lowercase letters, and spaces. No sentence is longer than 10001000 characters.

Output

For each sentence, print the number of consonants and the number of vowels in that order on one line, separated by a single space.

Examples1

  1. Example 1

    Input
    3
    You can win this thing
    May be too optimistic
    Just try to have fun
    
    Expected output
    12 6
    10 8
    11 5