import sys
s = input()
target = "keyence"

for i in range(len(target)):
    sbst1 = target[0:i]
    sbst2 = target[i:]
    ind = s.find(sbst1)
    indx = s.find(sbst2)

    if ind != -1 and indx != -1 and ind < indx:
        print("YES")
        sys.exit()

print("NO")