s = list(input())
k = list("keyence")

j = 0
cnt = 0
for K in k:
    while j < len(s):
        if K == s[j]:
            cnt += 1
            j += 1
            break
        j += 1

if cnt == len(k):
    print("YES")
else:
    print("NO")