s=input()
l=len(s)

a="keyence"
cnt=0
i=0
j=0
ans=""
if l<7:
  ans="NO"
elif s==a:
  ans="YES"
else:
  while(i<l):
    if s[i]==a[j]:
      cnt+=1
      i+=1
      j+=1
      
    else:
      i+=l-7
      
if cnt==7:
  ans="YES"
else:
  ans="NO"
print(ans)