#include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
int len, i, cnt = 1;
while(cin>>s)
{
len = s.size()-1;
i = 0;
bool f = true;
while(i<len/2)
{
if(s[i] != s[len-i])
{
f = false;
break;
}
i++;
}
string t = (f == true)?"yes":"no";
cout<<"case"
<<cnt++
<<": "
<<t
<<endl;
}
}
#include<string>
using namespace std;
int main()
{
string s;
int len, i, cnt = 1;
while(cin>>s)
{
len = s.size()-1;
i = 0;
bool f = true;
while(i<len/2)
{
if(s[i] != s[len-i])
{
f = false;
break;
}
i++;
}
string t = (f == true)?"yes":"no";
cout<<"case"
<<cnt++
<<": "
<<t
<<endl;
}
}