#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
s=input()
r="keyence"
res=False

for i in range(0,len(r)):
  r1=r[:i+1]
  r2=r[-(len(r)-i-1):]
  r1i=s.find(r1)
  r2i=s.find(r2)
  
  if r1i<0 or r2i<0:
    continue
  elif r1i==0:
    if r2i==len(s)-len(r2):
      res=True
if s.find(r)>=0 and s.find(r)==len(s)-len(r):
  res=True
if s.find(r)==0:
  res=True
    
  
if res:
  print('YES')
else:
  print('NO')

