#include<stdio.h>
int main()
{
char a[100];
int s1,s2,s3,s4,s5,n,i;
scanf("%d",&n);
s1=0,s2=0,s3=0,s4=0,s5=0;
getchar();
while(n--)
{
gets(a);
for(i=0;i<100&&a[i]!='\n';i++)
{
if(a[i]=='a')
s1++;
if(a[i]=='e')
s2++;
if(a[i]=='i')
s3++;
if(a[i]=='o')
s4++;
if(a[i]=='u')
s5++;
}
printf("a:%d\n",s1);
printf("e:%d\n",s2);
printf("i:%d\n",s3);
printf("o:%d\n",s4);
printf("u:%d\n",s5);
if(n)
printf("\n");
s1=0,s2=0,s3=0,s4=0,s5=0;
}
return 0;
}