a="keyence"
s=input()
ans=1
for i in range(7):
  m=a[:i]
  n=a[i:]
  if len(m)==0:
    if n in s:
      ans=0
    else:
      continue
  m=s.find(m)
  n=s.rfind(n)
  if m==-1 or n==-1:
    continue
  if n>m:
    ans=0
    break
print("YNEOS"[ans::2])