S = input()

"""
7<=|S|<=100
c ∈ {[a-z]}

keyaaence
keyence
"""

ref = "keyence0"
ri = 0
fail = -1
for i in range(len(S)):
    if S[i] == ref[ri]:
        ri += 1
    else:
        if fail >= 0:
            if fail == i - 1:
                fail = i
            else:
                print("NO")
                exit(0)
        else:
            fail = i
if ri == len(ref)-1:
    print("YES")
else:
    print("NO")