# -*- coding: utf-8 -*-
S = input()
WORD = "keyence"

if S == WORD:
    print("YES")
    exit()

for s in range(len(S)):
    for e in range(len(S)-s):
        a = S[:s]
        sub = S[s:e]
        b = S[e:]
        # print(a)
        # print(sub)
        # print(b)
        if a+b == WORD:
            print("YES")
            exit()

print("NO")
