ans_word = "keyence"

s = input()
flag = 0
tmp = 0

if (s[0] != "k" and s[-1] != "e") or len(s) < len(ans_word):
    flag = 0
elif (s[0] == "k" and s[-1] == "e"):
    for i, part_ans in enumerate(ans_word[1:]):
        if s[i + 1] != part_ans:
            # print(i)
            # print(part_ans)
            # print(s[i + 1:])
            tmp = i + 1
            flag = 0
            break
        if i == len(ans_word) - 2:
            flag = 1
    if flag == 0:
        # print(len(s), len(ans_word), tmp, 1)
        # print(len(s) - len(ans_word) + tmp + 1)
        # print(ans_word[len(s) - len(ans_word) + tmp + 1:-1])
        for i, part_ans in enumerate(ans_word[tmp - len(ans_word):-1]):
            # print(s[tmp - len(ans_word) + i:], part_ans)
            if s[tmp - len(ans_word) + i] != part_ans:
                flag = 0
                break
            flag = 1
else:
    if ans_word in s:
        flag = 1

if flag == 0:
    print("NO")
else:
    print("YES")
