S = input().strip()

T = "keyence"

start = 0
found = False
for i in range(len(T)):
    found = False
    while start < len(S):
        if S[start] == T[i]:
            start = start + 1
            found = True
            break
        else:
            start = start + 1
    if not found:
        break

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

    