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