S = input()

key = "keyence"

t = -1

for i in range(7):
    if not S[i] == key[i]:
        t = i
        break

ans = True

if t:
    for i in range(1, 7 - t + 1):
        if not S[-i] == key[-i]:
            ans = False
            break

if ans:
    print("YES")
else:
    print("NO")

