S = "keyence"
line = input()
cnt = 0
for i in range(7):
    string = ""
    if(line.find(S[i+1:]) > line.find(S[0:i+1])>= 0): string += line[:line.find(S[0:i+1])+(i+1)] + line[line.find(S[i+1:]):]
    #print(line.find(S[0:i+1]), string)
    #print(S[0:i+1], S[i+1:])
    if(string == S): cnt += 1
if(cnt>0): print("YES")
else: print("NO")