import sequtils,strutils,algorithm,math,future,macros,sets,tables,intsets,queues,nre
template get*():string = stdin.readLine().strip()
template times*(n:int,body) = (for _ in 0..<n: body)
template `max=`*(x,y) = x = max(x,y)
template `min=`*(x,y) = x = min(x,y)


let S = get()
if not S.match(re".*keyence").isNone or
  not S.match(re".*keyence").isNone or
  not S.match(re"k.*eyence").isNone or
  not S.match(re"ke.*yence").isNone or
  not S.match(re"key.*ence").isNone or
  not S.match(re"keye.*nce").isNone or
  not S.match(re"keyen.*ce").isNone or
  not S.match(re"keyenc.*e").isNone or
  not S.match(re"keyence.*").isNone :
    echo "YES"
else:
  echo "NO"
