s = input()

keyence = 'keyence'
flag = 0
k_i = 0
en = ""
en_list = []

for i in range(len(s)):
    if s[i] == keyence[k_i]:
        k_i += 1
        if k_i >= len(keyence)-1:
            break
        flag = 1
        if en != "":
            en_list.append(en)
            en = ""
    else:
        en += s[i]
if en != "":
    en_list.append(en)
if len(en_list) <= 1 and flag:
    print("YES")
else:
    print("NO")
