S = input()

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

keyaaence
keyence
"""

ref = "keyence"

if S == ref:
    print("YES")
    exit(0)

ri = 0
ci = 0

missmatch=[]

while ci < len(S):
    if ref[ri] == S[ci] and ri <= len(ref)-1:
        # match
        ri+=1
    else:
        missmatch.append(ci)

    ci += 1
if ri != len(ref):
    print("NO")
    exit(0)

ok = True
for i in range(len(missmatch)-1):
    if missmatch[i] + 1 != missmatch[i+1]:
        ok = False
# print(missmatch)
if ok:
    print("YES")
else:
    print("NO")
