#! /usr/bin/env python
import sys

CHECK_STRING = 'keyence'

def main():
  line = sys.stdin.readline().strip()

  CheckKeys = list(CHECK_STRING)
  checkChar = CheckKeys.pop(0)

  missIndex = 0
  for i in list(line):
    if i == checkChar:
      if len(CheckKeys) != 0:
        checkChar = CheckKeys.pop(0)
    else:
      break
    missIndex += 1

  restString = CHECK_STRING[missIndex:]
  checkRestString = line[missIndex:]

  secondIndex = checkRestString.find(restString)
  if secondIndex > -1 and checkRestString[secondIndex:] == restString:
    print('YES')
  else:
    print('NO')


main()

