#include<stdio.h>
#include<string.h>
#define MAX 300
int main(){
int i,len,flag;
char s[MAX];
while(scanf("%s",s)!=EOF){
len=strlen(s);
flag=0;
if(len==1||len==2)
printf("zz happy!\n");
else{
for(i=0;i<(len-1)/2;i++){
if(s[i]==s[len-i-2])
flag=1;
else{
flag=0;
break;
}
}//for
if(flag==1)
printf("zz happy!\n");
else{
for(i=1;i<=(len-1)/2;i++){
if(s[i]==s[len-i])
flag=1;
else{
flag=0;
break;
}
}//for
if(flag==1)
printf("zz happy!\n");
else
printf("zz cry\n");
}//else
}
}//while
return 0;
}