var str = stdin.readLine.string

var isSkipping = false
var isSkipped = false
var k = 0

for i in 0..<str.len:
    if k == 7 and isSkipped:
        k += 1
        break
    if str[i] == "keyence"[k]:
        if isSkipping:
            isSkipped = true
        k += 1
        continue
    else:
        if isSkipped:
            break
        else:
            isSkipping = true


if k == 7:
    echo "YES"
else:
    echo "NO"
