# coding: utf-8

cnt=0
keyence="keyence"
flg=[-1,-1,-1,-1,-1,-1,-1]
s=input()

for i in range(len(s)):
    for j in range(len(keyence)):
        if s[i]==keyence[j] and flg[j]==-1:
            flg[j]=i
        elif flg[j]==-1:
            break

for i in range(len(flg)-1):
    if flg[i+1]-flg[i]!=1:
        cnt+=1

print(flg)

if flg[0]!=0:
    cnt+=1
if flg[6]!=len(s)-1:
    cnt+=1

if cnt<2:
    print("YES")
else:
    print("NO")