#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
string s;
int i,x=0;
while(cin>>s)
{
x=0;
for(i=1;i<(s.size()+1)/2;++i)
{
if(s[i]!=s[s.size()-i])
{
break;
}
}
if(i==(s.size()+1)/2)
x=1;
for(i=0;i<(s.size()+1)/2;++i)
{
if(s[i]!=s[s.size()-2-i])
{
break;
}
}
if(i==(s.size()+1)/2)
x=1;
if(x==0)
cout<<"zz cry"<<'\n';
else
cout<<"zz happy!"<<'\n';
}
}