# your code goes here
a = input()
lst = []
U = False
C = False
P = False
C1 = False
love = False
for i in a:
    lst.append(i)
for i in lst:
    if i == "U" or U :
        U = True
        if i == "C" or C :
            C = True
            if i == "P" or P:
                P = True
                if i == "C" or C1:
                    print("I love UCPC")
                    love = True
        continue
    else:
        continue
if not love:
    print("I hate UCPC")