#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char s[205];
int i,j,f;
while(cin>>s)
{
for(f=1,i=0,j=strlen(s)-2;i<j;i++,j--)
if(s[i]!=s[j])
f=0;
if(f){cout<<"zz happy!\n";continue;}
for(f=1,i=1,j=strlen(s)-1;i<j;i++,j--)
if(s[i]!=s[j])
f=0;
f?cout<<"zz happy!\n":cout<<"zz cry\n";
}
}