package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func out(x ...interface{}) {
	fmt.Println(x...)
}

var sc = bufio.NewScanner(os.Stdin)

func getInt() int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func getString() string {
	sc.Scan()
	return sc.Text()
}

// min, max, asub, absなど基本関数
func max(a, b int) int {
	if a > b {
		return a
	}
	return b
}

func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}

func asub(a, b int) int {
	if a > b {
		return a - b
	}
	return b - a
}

func abs(a int) int {
	if a >= 0 {
		return a
	}
	return -a
}

func main() {
	sc.Split(bufio.ScanWords)
	sc.Buffer([]byte{}, 1000000)
	s := getString()

	t := "keyence"

	if s[:len(t)] == t {
		out("YES")
		return
	}
	if s[len(s)-len(t):] == t {
		out("YES")
		return
	}

	cut := false
	cnt := 0
	for i := 0; i < len(s); i++ {
		if len(t) == 0 {
			out("NO")
			return
		}
		if s[i] == t[0] {
			t = t[1:]
			cut = false
		} else {
			if cut == false {
				cnt++
			}
			cut = true
		}
	}

	if len(t) == 0 && cnt == 1 {
		out("YES")
	} else {
		out("NO")
	}
}
