while 1:print''.join(y*(x>y)for x,y in zip(raw_input(),'CHRISTMAS'))