import re

s = input()
key = 'keyence'
x = 0
for i in range(7):
  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')