# B
S = input()
K = 'keyence'
k = 0
for i in range(1,len(K)):
    n = S.find(K[:i])
    #print(n)#
    #print(S[n+i:],K[i:])#
    m = S[n+i:].find(K[i:])
    #if n>=0 and m>=0:
    #if (n==0 and m>=0) or (n>0 and S[n+i:]==K[i:]):
    if (n==0 and m==0) or (n==0 and m>0 and S[n+i+m:]==K[i:]) or \
        (n>0 and S[n+i:]==K[i:]):
        
        res = 'YES'
        break
else: res = 'NO'        
print(res)