#include<stdio.h>
#include<string.h>
int main()
{
char s[200];
int i,a,x;
{
while(scanf("%s",s)!=EOF){
a=strlen(s);
for(i=0;i<a/2;++i)
{
if(s[i+1]!=s[a-i-1]&&s[i]!=s[a-i-2]){
printf("zz cry\n");
break;}}
if(i==strlen(s)/2)
printf("zz happy!\n");} }
}