word = 'keyence'
l = input()
i = l.find(word)
if i == 0 or i == (len(l)-len(word)) :
  print('YES')
  exit()

for i in range(1,len(word)):
  a = word[:i]
  b = word[i:]
  ai = l.find(a)
  bi = l.find(b)
  #print(ai,bi)
  if ai == 0 and bi == (len(l)-len(b)):
    print('YES')
    exit()
print('NO')
