def makelist(n, m):
    return [[0 for _ in range(m)] for _ in range(n)]
# 


s = input()
key = "keyence"
ind = 0

for c in s:
    if ind == len(key):
        break
    else:
        if key[ind] == c:
            ind += 1

if ind == len(key):
    print("YES")
else:
    print("NO")
