S = input()

ky = 'keyence'

lky = len(ky)
tf = [all({S[:i] == ky[:i], S[-(lky-i):] == ky[-(lky-i):]}) for i in range(lky)]

#for i in range(lky):
    # print(keyence[:i] + keyence[-(7-i):])
 
print(any(tf))