import sys

sys.setrecursionlimit(10000)
import re

# N = int(input())
# A = [int(x) for x in input().split()]
# V = [[0] * 100 for _ in range(100)]

# N = [int(x) for x in input().split()]

S = input()

K = "keyence"

s_idx = 0
k_idx = 0
skip = False

while (S[s_idx] == K[k_idx]):
    s_idx += 1
    k_idx += 1
    if k_idx == len(K):
        print("YES")
        sys.exit(0)

while (S[s_idx] != K[k_idx]):
    s_idx += 1
    if s_idx == len(S):
        print("NO")
        sys.exit(0)


while (S[s_idx] == K[k_idx]):
    s_idx += 1
    k_idx += 1
    if s_idx >= len(S) or k_idx >= len(K):
        break

if s_idx == len(S) and k_idx == len(K):
    print("YES")
else:
    print("NO")

