import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline

s=input().rstrip()
t="keyence"
i,j=0,0
while len(s)>i:
    if j>=7:break
    if s[i]==t[j]:
        j+=1
    i+=1
print("YES"if j==7 else "NO")