s = input()
N = len(s)
k = "keyence"
K = len(k)
flag = False
if s[N - K:] == k:
    print("YES")
    exit()
if s[:K] == k:
    print("YES")
    exit()

for i in range(1, K - 1):
    if s[:i] == k[:i] and s[N - (K - i):] == k[K - i - 1:]:
        print("YES")
        exit()

print("NO")