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

if s == k:
    print("YES")
    exit()

for i in range(len(s)):
    for j in range(i + 1, len(s)):
        if s[:i] + s[j + 1:] == k:
            print("YES")
            exit()
print("NO")