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