import sys
import itertools
# import numpy as np
import time
import math
import heapq
from collections import defaultdict
from collections import Counter
sys.setrecursionlimit(10 ** 7)
 
INF = 10 ** 18
MOD = 10 ** 9 + 7
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

# map(int, input().split())

S = input()
T = []
i = 0
cur = ""
while i < len(S):
    if S[i] in "keyence":
        cur += S[i]
        i += 1
    else:
        T.append(cur)
        cur = ""
        while i < len(S) and S[i] not in "keyence":
            i += 1
if cur:
    T.append(cur)
for i in range(len(T)):
    if T[i] == "keyence":
        print("YES")
        exit()
    for j in range(i + 1, len(T)):
        if T[j] == "keyence":
            print("YES")
            exit()
        if T[i] + T[j] == "keyence":
            print("YES")
            exit()
print("NO")