'use strict'

const main = (INPUT) => {
  const S = INPUT.split('\n')[0]
  const str = 'keyence'
  let ans = 'NO'
  let j = 0
  let flag = true
  for (let i = 0; i < S.length; i++) {
    if (S[i] == str[j]) {
      j++
    } else {
      if (flag) {
        while (S[i] == str[j]) {
          i++
          if (i > S.length) {
            break
          }
        }
      } else {
        break
      }
    }

    if (j == str.length && i == S.length - 1) {
      ans = 'YES'
    }
  }
  console.log(ans)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
