# 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:])#
    if n>=0 and S[n+i:].find(K[i:])>=0:
        res = 'YES'
        break
else: res = 'NO'        
print(res)