S=input()
import copy
s=copy.deepcopy(S)
n=len(s)
I=['k','e','y','e','n','c','e']
i=0
f1=0
f2=0
answer='NO'
while(1):
    if (n<=i or len(I)==0):
        if len(I)==0:
            answer='YES'
        break
        
    if (s[i]==I[0]):
        del(I[0])
        i+=1
        if f1==1:
            f2=1

    else:
        if f2==1:break
        if f1==0:f1=1    
        i+=1

print(answer)
