Dynamic array of pointers to functions for string processing

C++ Hard pointers

Task «Dynamic array of pointers to functions for string processing»

Write a C++ program that reads an integer N, then N strings. Create a dynamic array of pointers to functions, each of which takes a string and returns an integer. Functions: 1) returns the length of the string; 2) the number of vowel letters (a, e, i, o, u, y in any case); 3) the number of digits. For each string, apply all three functions through the array of pointers and output the results separated by a space. Use only pointers and dynamic memory (new/delete).

Input Format

Integer N (1 ≤ N ≤ 100). Then N lines, each up to 100 characters long.

Output Format

For each line, output three numbers separated by spaces: length, number of vowels, number of digits. Each line of results on a new line.

Examples

Example 1

INPUT
4
OUTPUT
true
main.cpp