import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
char chs[] ={'a','e','i','o','u'};
while(n-->0){
String str = sc.nextLine();
int[] num =new int[5];
for(int i=0;i<str.length();i++){
char ch = str.charAt(i);
for(int j=0;j<chs.length;j++){
if(ch==chs[j]){
num[j]++;
break;
}
}
}
for(int i=0;i<chs.length;i++){
System.out.println(chs[i]+":"+num[i]);
}
if(n>0){
System.out.println();
}
}
}
}