for(;r=readline();print())for(i in r)r[i]>']'&&putstr('CHRISTMAS'[i])