#include<bits/stdc++.h>
using namespace std;
int main(){
int T;
cin>>T;
int k=0;
while(T--){
k++;
int flag=1;
string s;
cin>>s;
int i;
for(i=0;i<s.size()-1;i++){
if(s[i]=='1' and s[i+1]=='3'){
flag=0;
cout<<"Case #"<<k<<": No, it's terrible!"<<endl;
}
}
if(i==s.size()-1 and flag==1){
cout<<"Case #"<<k<<": Yes, I like it!"<<endl;
}
}
return 0;
}