s=input()
tg="keyence"

if s.find(tg)==0 or s.find(tg)==len(s)-7:
  print("YES")
else:
  for i in range(1,6):
    a,b=tg[:i],tg[i:]
    if s.find(a)==0 and s.find(b)==len(s)-len(b):
      print("YES")
      break
  else:
    print("NO")