#--------------------------------------------------
import strutils, sequtils, math, algorithm, tables, sets, lists, intsets, critbits, future
proc readSeq(): seq[string] =
    stdin.readLine.split
proc readSeqInt(): seq[int] =
    stdin.readLine.split.map(parseInt)
proc readInt1(): int =
    stdin.readLine.parseInt
proc readInt2(): (int, int) =
    let a = readSeq().map(parseInt)
    return (a[0], a[1])
proc readInt3(): (int, int, int) =
    let a = readSeq().map(parseInt)
    return (a[0], a[1], a[2])
proc readInt4(): (int, int, int, int) =
    let a = readSeq().map(parseInt)
    return (a[0], a[1], a[2], a[3])
proc scanf(formatstr: cstring){.header: "<stdio.h>", varargs.}
proc scan(): int = scanf("%lld%*c",addr result)
#--------------------------------------------------
import nre,options
var s = stdin.readLine()
var ans = false
for i in [re"keyence", re"k.*eyence", re"ke.*yence", re"key.*ence", re"keye.*nce", re"keyen.*ce", re"keyenc.*e"]:
    var b = s.match(i)
    if b.isSome:
        ans = true
        break
echo(if ans: "YES" else: "NO")