while 1:s=input();print("".join("CHRISTMAS"[i]*(s[i]>"Z")for i in range(9)))