#include<iostream>
#include<fstream>
#include<cstdio>
using namespace std;
ifstream fin("poker1.in")
ofstream fout("poker1.out");
int n[105],a[105],b[105],c[21];
string s[105];
int main () {
int m;
fin>>m;
for (int i=1;i<=m;i++){
fin>>n[i];
for (int j=0;j<n[i];j++){
cin>>a[j];
}
for (int r=0;r<n[i];r++){
for (int n=1;n<=13;n++){
if (a[r]==n){
b[n]++;
}
}
}
for (int x=1;x<=13;x++){
if (b[x]>4){
s[i-1]="cheat";
}
else if (b[x]==4){
c[i-1]++;
}
else if (b[x]<4){
s[i-1]="no bomb";}
}
}
for (int i=0;i<m;i++){
if (s[i]=="cheat"){
fout<<s[i]<<endl;
}
else if (s[i]=="no bomb"){
fout<<s[i]<<endl;}
else {
fout<<c[i]<<endl;}
}
return 0;
}