# -*- coding: utf-8 -*-

keyStr=input()
keyence="keyence"

before=""
after=""
chkflg=False

if keyStr.find(keyence) >= 0:
  print("YES")

for char in range(len(keyence) -1):
  before=keyence[0:char+1]
  after=keyence[char+1:len(keyence)]
  
  bindex= keyStr.find(before)
  if bindex >= 0:
    if keyStr[bindex+len(before):len(keyStr)].find(after) >= 0:
      print("YES")
      chkflg=True
      break

if chkflg == False:
  print("NO")