s=input()

a="keyence"

j=0

count=0

dif_count=2

if(s[0]!=a[0]):
    dif_count=1

for i in range(len(s)):
    if(s[i]==a[j]):
        j+=1
        count+=1
        if(count==7):
            if(i+1<len(s)):
                dif_count+=1
            break
        if(s[i+1]!=a[j] and i<len(s)-1):
            dif_count+=1
            
        
        
if(count==7 and dif_count<2 ):
    print("YES")
else:
    print("NO")
