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