import sys

S=input()

L="keyence"

if L in S:
    print("YES")
    sys.exit()

for i in range(1,7):
    if L[:i] in S:
        j=S.index(L[:i])

        if L[i:] in S[j+i:]:
            print("YES")
            sys.exit()
            #print(L[i:],S[j+i:])

print("NO")