import re

s = input()
key = 'keyence'
x = 0
for i in range(7):
  str0 = re.compile(r'^' + key)
  str1 = re.compile(r'' + key + '$')
  if str0.search(s) != None or str1.search(s) != None:
    x = 1
  else:
    str0 = re.compile(r'^' + key[i])
    str1 = re.compile(r'' + key[6-i] + '$')
    if str0.search(s) != None and str1.search(s) != None:
      x = 1

if x == 1:
  print('YES')
else:
  print('NO')