import sys
input = sys.stdin.readline
s = input()
n = len(s)
k = 0
for i in range(n+1):
    for j in range(i,n+1):
        if "keyence" == s[:i] + s[j:]:
            k = 1
            break
if k == 0:
    print("NO")
else:
    print("YES")