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

keyStr=input()
keyence="keyence"
chkflg=False

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 and keyStr[bindex+len(before):len(keyStr)].find(after) >= 0:
    print("YES")
    chkflg=True
    break

if chkflg == False:
  if keyStr.find(keyence) >=0:
    print("YES")
  else:
    print("NO")