S = input()

p = 0
keyence = list("keyence")
# print(keyence)
id = []

for s in S:
    if p > 6:
        continue
    if s != keyence[p]:
        id.append(p)
        continue
    if p <= 6:
        p += 1

# print(p, id)
if p == 7 and (len(set(id)) == 1 or len(id) == 0):
    print("YES")
else:
    print("NO")

