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

    else:
        i+=1

if len(I)==0:
    print('YES')

if len(I)!=0:
    print('NO')
        
        