#include<stdio.h>
#include<string.h>
int main(){
int T;
char c1[1000];
char c2[1000];
char c3[1000];
int max1=0,max2=0,max3=0;
int count=0;
scanf("%d",&T);
while(T--){
count++;
int n,i;
char a[1000];
scanf("%d",&n);
scanf("%s",a);
char b[1000];
int count1=0,count2=0,count3=0;
for(i=1;i<=n;i++){
scanf("%s",b);
if(b[0]==b[1]&&b[1]==b[3]&&b[3]==b[4]&&b[4]==b[6]&&b[6]==b[7])
count1++;
else if(b[0]>b[1]&&b[1]>b[3]&&b[3]>b[4]&&b[4]>b[6]&&b[6]>b[7])
count2++;
else{
count3++;
}
}
if(max1<count1){
max1=count1;
strcpy(c1,a);
}
else if(max1==count1&&count!=1){
strcat(c1,", ");
strcat(c1,a);
}
else if(max1==0&&count1==0){
max1=count1;
strcpy(c1,a);
}
if(max2<count2){
max2=count2;
strcpy(c2,a);
}
else if(max2==count2&&count!=1){
strcat(c2,", ");
strcat(c2,a);
}
else if(max2==0&&count2==0){
max2=count2;
strcpy(c2,a);
}
if(max3<count3){
max3=count3;
strcpy(c3,a);
}
else if(max3==count3&&count!=1){
strcat(c3,", ");
strcat(c3,a);
}
else if(max3==0&&count3==0){
max3=count3;
strcpy(c3,a);
}
}
printf("If you want to have a keyboard, you should call: %s",c1);
printf(".\n");
printf("If you want to order a Watchdog2, you should call: %s",c2);
printf(".\n");
printf("If you want to have a cup of coffee with a girl, you should call: %s",c3);
printf(".\n");
return 0;
}