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