S=input()
s="keyence"
l=len(S)
c=0
for i in range(7):
    j=0
    while i+j<=l:
        if S[j:j+i]==s[:i]:
            break
        j+=1
    else:
        continue
    while 7-i+j<=l:
        if S[j:7-i+j]==s[i:]:
            c=1
            print("YES")
            break
        j+=1
    else:
        continue
    break
if not c:
    print("NO")